Using fuel_helper on 404 page or controller

edited September 2011 in News & Announcements
Hey, if I try to load my header which includes fuel_nav() from a controller or a 404 file CI doesn't find this function.
Is there a way to use it anyway?


  • edited 4:32AM
    If you look at the fuel/application/errors/error_404.php file you'll see that require_once is used to include helpers that are needed to render certain pages. In this case you could use require_once(FUEL_PATH.'helpers/my_helper.php');
  • FvGFvG
    edited 4:32AM
    Already got it, the fuel_helper works fine as it is. Just had to give it an array with file => nav and it works fine, even with a controller and 404.
Sign In or Register to comment.