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

(09-04-2015, 04:52 PM)kendysond Wrote: Thanks for the feedback, i tried it but it didn't work

It's always helpful to provide more details on exactly what you did that didn't work. Otherwise, we don't have any idea how to help you.

I just ran through the process and did the following:
  • Created a new folder called "common" at the same level as the index file and application/system folders
  • Created a new library at "/common/libraries/Tryme.php with a simple die('found it!') in the constructor to ensure the class was found and loaded.
  • Added "FCPATH .'common' to the "config/autoload" setting for packages.
  • Added "$this->load->library('tryme')" to the welcome controller.

When I visited the site, it died with the "Found it!" text on the screen as expected.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB