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

(09-04-2015, 07:40 PM)kilishan Wrote:
(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.

OMG!!!!!!! ???? ?????I'm just seeing this now, i just tried and it worked like a charm, i deeply appreciate Sir!!!!!!

i used "substr(BASEPATH,0,-7)" instead of FCPATH though, this means alot Sir, Have a great Day!
Reply


Messages In This Thread
RE: sharing library between Multiple Applications with one CodeIgniter Installation - by kendysond - 09-19-2015, 01:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB