Welcome Guest, Not a member yet? Register   Sign In
sharing library between Multiple Applications with one CodeIgniter Installation
#4

(09-04-2015, 07:10 AM)kilishan Wrote: You shouldn't put anything in the `system` folders. Leave that for CodeIgniter otherwise your changes will get overwritten whenever you upgrade the CI core.

Instead, for common libraries, create a new folder, and add that folder as a Package in both of your applications. You can have this path autoloaded by adding it to the autoload.php config file. By default it will load APPPATH/third_party but you can always replace that if you don't use it.


Code:
$autoload['packages'] = array(FCPATH.'common');
Thanks for the feedback, i tried it but it didn't work
Reply


Messages In This Thread
RE: sharing library between Multiple Applications with one CodeIgniter Installation - by kendysond - 09-04-2015, 04:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB