404... That really shouldn't be - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: 404... That really shouldn't be (/showthread.php?tid=59774) |
404... That really shouldn't be - El Forum - 11-15-2013 [eluser]Unknown[/eluser] Hello, So, I have been reading the documentation and I am trying to figure out how to get a controller I made to work. The URL is supposed to be http://jessicasideways.info/higherone/ and it is using a controller at application/controllers/higherone.php that has this code: Code: <?php (and the reason why I am not using the pages controller is because I want to use custom headers & footers for mini sites I create on this domain, like this one). This is what routes I have defined: Code: $route['default_controller'] = "welcome"; So, what am I doing wrong? 404... That really shouldn't be - El Forum - 11-15-2013 [eluser]CroNiX[/eluser] Try changing Code: file_exists('application/views/higherone/'.$page.'.php') Code: file_exists(APPPATH . 'views/higherone/'.$page.'.php') Also I believe your routes should be, in this order: Code: //routes go from most segments to least. 404... That really shouldn't be - El Forum - 11-15-2013 [eluser]Unknown[/eluser] Thanks, Cronix. Your help is really appreciated. |