Using fuel_helper on 404 page or controller

FvGFvG
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?

Comments

  • edited 7:20PM
    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 7:20PM
    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.