Thursday, April 21, 2011

CodeIgniter - PATHS

CodeIgniter as a few reserved words that points to your application path, but it's not clear where they point to. The following is for windows on my dev machine, but applies to linux as well.

FCPATH=C:\xampplite\htdocs\appname\
BASEPATH=C:\xampplite\htdocs\
appname/system/
APPPATH=C:\xampplite\htdocs\appname/system/application/

So to point to some .dat files in your libraries dir (QR code), the string would be APPPATH.'libraries/qrcode/data'.

No comments:

Post a Comment