i have module A with library L1, and i want to use library L1 in module B, how to access library L1 in module A from module B?
in module A
$this->load->library(‘module_b/library_l1.php’);
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
July 02, 2009 12:38am
Subscribe [88]#316 / May 24, 2011 1:53pm
i have module A with library L1, and i want to use library L1 in module B, how to access library L1 in module A from module B?
in module A
$this->load->library(‘module_b/library_l1.php’);
#317 / Jun 16, 2011 7:39pm
Am I the only one who hates these massive threads? This module needs it’s own discussion group where each question can be a new topic. Don’t make everyone read a 32+ page thread to try learn this module.
#318 / Jun 16, 2011 7:44pm
@Sir Dali, Why don’t you create the discussion group yourself instead of telling people what to do?
#319 / Jun 16, 2011 7:47pm
@wiredesignz, Why would I do that? I don’t own the project and I’m not even a user of it yet. I was wanting to investigate it and having a 32 page thread to read through did not encourage me.
#320 / Jun 16, 2011 8:14pm
@Sir Dali, I recommend that you try to use Modular Extensions HMVC based on the information in the wiki on Bitbucket (see my signature) and then, when you have difficulty, do a search in the forums, or better yet ask a question.
#321 / Jul 01, 2011 7:14am
This Library is great!!!
I’d have tested in my web, and it works fine…
It’s easier now to separate my works… :D
But I wonder, can I do the same with the core folder?
Here’s what I mean,
If I had :
- application
-- core
.....
-- modules
--- admin
---- controllers
---- models
---- views
--- api
---- controllers
---- models
---- views
--- helptext
---- controllers
---- models
---- viewsI would like to have different core MY_Controller.php for every module that I had, since every modules had different behaviors.
(example: api needs oauth authentication, admin need super privilege, and helptext need only to display plain text)
Edited:
I can only do that in the application/core folder with different controller files (admin_controller.php, api_controller.php, help_controller.php) but not in the /modules/[module]/core
Is there a way?
#322 / Nov 15, 2011 6:34pm
Is there a way to extend one module controller/model in another module?
#323 / Mar 23, 2012 6:12am
Can it be implemented in Version 2.1.0? As I am new to CI.
#324 / May 03, 2012 2:04am
Can it be implemented in Version 2.1.0? As I am new to CI.
me to
#325 / Mar 01, 2013 1:46am
How to implement struckture like this
application
-config
-etc
-modules
—plc
—-plc_test
——controllers
——-plc_test.php
—-plc_test2
——controllers
——-plc_test2.php
—ga
—-ga_test
——controllers
——-ga_test.php
—-ga_test2
——controllers
——-ga_test2.php
—-etc
The PLC folder, GA Folder its a variable.
Thanks Before 😊