How to get current layout name?

edited May 2014 in News & Announcements
Hi, I want to get current page's layout name. I'm using `$this->fuel->pagevars->view()` to get all the variables. But it is always return 'main' as layout name

Comments

  • edited 9:06AM
    If the page is in the CMS, you can use:
    $this->fuel->page->properties('layout')
Sign In or Register to comment.