I already have items in the navigation but when I try to do this:
var_dump($this->fuel->navigation->render());
I am not getting any result, meaning a string '' (length=0)
.
I also trie fuel_nav()
but it isn't outputting anything.
Is that the proper way to output navigation items in FuelCMS?
Your help will be greatly appreciated!
Thank you! :)
First, you do actually have navigation items created in FUEL right?
If you do and you want to debug the raw array you can have a look at it with:
$nav_items = fuel_nav(['return_normalized' => true]);
print_obj($nav_items);
This will also do it:
$nav_items = $this->fuel->navigation->data();
print_obj($nav_items);
If you just want to pound it out to screen, just:
<?=fuel_nav()?>
will do it.