Welcome Guest, Not a member yet? Register   Sign In
Yet another CodeIgniter noob, getting nothing but 404 errors from tutorials...
#6

[eluser]CroNiX[/eluser]
Just use the built in APPPATH constant (defined at the bottom of index.php and is what CI uses internally), which is a full path that points to
/your/install/application/

So just
Code:
if ( ! file_exists(APPPATH . 'views/pages/' . $page . '.php')) {

No need to recreate something that is already there, and it won't matter if you've relocated the application dir.


Messages In This Thread
Yet another CodeIgniter noob, getting nothing but 404 errors from tutorials... - by El Forum - 12-29-2013, 12:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB