10-17-2012, 08:41 AM
[eluser]manix[/eluser]
I'm developing a php application using CodeIgniter2, this application resides in:
/public_html/community/
-application
-system
-index.php
This application has its own `My_Session` library (extending from native CI_Session library). Well, everything goes fine here. But, I want to create a Portal/Frontpage at the root directory, for this porpusee I have installed another CI2 application:
/public_html/
-application
-system
-index.php
-community/ (here resides the another CI2 installation)
What I have tried to do is "share" the Session library from `community` to root using the method $this->load->add_package_path() from Loader class, as below:
$this->load->add_package_path('/public_html/community/application/');
$this->load->library('Session');
The problem here is that the Loader class load the Session library from the root system instead package library (community/application/libraries). Did you know how can I deal with it? or if you know a another way to share the Session Library.
Here is where my session library resides:
/public_html/community/application/libraries/My_Session.php
I'm developing a php application using CodeIgniter2, this application resides in:
/public_html/community/
-application
-system
-index.php
This application has its own `My_Session` library (extending from native CI_Session library). Well, everything goes fine here. But, I want to create a Portal/Frontpage at the root directory, for this porpusee I have installed another CI2 application:
/public_html/
-application
-system
-index.php
-community/ (here resides the another CI2 installation)
What I have tried to do is "share" the Session library from `community` to root using the method $this->load->add_package_path() from Loader class, as below:
$this->load->add_package_path('/public_html/community/application/');
$this->load->library('Session');
The problem here is that the Loader class load the Session library from the root system instead package library (community/application/libraries). Did you know how can I deal with it? or if you know a another way to share the Session Library.
Here is where my session library resides:
/public_html/community/application/libraries/My_Session.php