How to render different layout in controller

edited May 2014 in Modules
Hi, I have a controller called Contact, Its passes some values to a view file. But I want to know is there any way to choose the layout and render the view?

Comments

  • edited 4:44AM
    Found a solution. You create a view and call fuel_set_var function

    <?php fuel_set_var('layout', 'your_layout_file')?>
Sign In or Register to comment.