CodeIgniter Forums
Application - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Application (/thread-59458.html)



Application - El Forum - 10-07-2013

[eluser]davy_yg[/eluser]

Hello,

I am trying to seperate my backend and frontend by creating two folders inside of application folder: site & admin.

Then, after seperating those files, this error start to appears:

Warning: require(application/config/constants.php): failed to open stream: No such file or directory in C:\xampp\htdocs\IndonusaCI2\system\core\CodeIgniter.php on line 65

Fatal error: require(): Failed opening required 'application/config/constants.php' (include_path='.;\\xampp\\php\\PEAR') in C:\xampp\htdocs\IndonusaCI2\system\core\CodeIgniter.php on line 65

Anyone knows how to fix the errors?


Application - El Forum - 10-09-2013

[eluser]boltsabre[/eluser]
Check this out, it's a good example of how you should set this up:
http://philsturgeon.co.uk/blog/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY


Application - El Forum - 10-09-2013

[eluser]davy_yg[/eluser]

Is that code that gave me possible to divide the application into two folder: site & admin and still works?