• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Including and Requiring files.

#2
[eluser]RobertSF[/eluser]
Do you have your folders set up more or less like this?
Code:
|
+-- CI
  +-- application
    +-- controllers
    +-- models
    +-- views
  +-- system
|
+-- Your PHP library
Then you include your PHP library, but when your PHP library starts including its own files, it doesn't work because now the starting point for the relative path is CI, not the library.

Can you move your PHP library to your CI folder? On my system, at least, getcwd() returns "C:\Users\RobertSF\Apache\htdocs\ci"

Now that I think of it, that's going to put all the library files in your CI folder, but that's because the library designers put the 'master' file and all the other files at the same level.

Maybe someone else has a better idea. I'm still a noob. :red:


Messages In This Thread
Including and Requiring files. - by El Forum - 09-21-2013, 10:39 AM
Including and Requiring files. - by El Forum - 09-24-2013, 12:00 AM
Including and Requiring files. - by El Forum - 09-24-2013, 05:55 PM
Including and Requiring files. - by El Forum - 10-01-2013, 03:18 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.