How do I get the Fuel Page ID in a layout?
I need to know what page I'm on so I can display content based on the page. How can I access the page id from a layout?
Doing a get_defined_vars() I can see the page id in numerous locations, but I can't see how I can access it easily. It is BURIED deep in the variables hierarchies...hoping there's any easy way to get it.
Comments
$CI->fuel->page->id
In .93 you can do:
$CI->fuel_pages->id