How do I get the Fuel Page ID in a layout?

edited April 2013 in Modules
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

  • edited 3:28PM
    In 1.0 beta you can do the following:
    $CI->fuel->page->id

    In .93 you can do:
    $CI->fuel_pages->id
Sign In or Register to comment.