Controller not loading view properly

edited November 2013 in Modules
Fuel 1.0..

So, I have an opt-in controller and in the controller I'm trying to load a view (no cms). I removed the page from the CMS so it's not under pages at all. When I publish the site to my unix server the page comes up 404.. the "catering.php" file is in the views.

NOTE: All of these work on localhost with a page added in the CMS or not added..

Tried...
$page_init = array('render_mode' => 'views');
$this->fuel->pages->render('catering', $vars, $page_init);

Tried..
$this->fuel->pages->render('catering', $vars);

Any ideas?

Comments

  • edited 6:09PM
    That appears to be the correct syntax. It sounds like you have this in a controller file. What is the name of the controller and the method that you are calling?

    Is it perhaps a .htaccess issue in general? Does http://mysite.com/fuel show up?
Sign In or Register to comment.