I have been digging into FUEL CMS for two days now, but I have to admit that it does not get much clearer to me at the moment.
I am familar with codeIgniter and I am trying to use the normal approach of MVC in FUEL cms. However even the simplest try already results in errors.
My example: I am just trying to use the controller in the way that it is done in codeIgniter. I have controller file called: testcontroller.php. It contains the following code:
class Testcontroller extends CI_Controller {
function __construct()
{
parent::__construct();
}
function index () {
echo 'test';
}
}
Now if I try to open this location at my local host I get the following error:
Fatal error: Call to undefined function fuel_nav() in C:\wamp\www\FUEL-CLEAN\fuel\application\views\_variables\global.php on line 9
Now I have the feeling that I miss some (simple) understanding of what I am doing wrong. I have followed the tutorials but they all use a different approach than in CI. I would like to build my site like in CI and only add the cms functionality when necessary. This should be possible right?
Comments
fuel_nav is part of the fuel_helper which should be loaded by default but I suggest you check config/autoload.php for $autoload['helper'] near line 53; It should contain "fuel/fuel" in the array which I think is the fuel_helper in the fuel module.
Thanks for the answers. And thanks for FUEL cms, because the more I dive into it the more I start to realize its power and flexibility.