Solar_Controller_Page::_setLayoutTemplates()

protected void Solar_Controller_Page::_setLayoutTemplates ( void )

Resets $this->_view_object to use the Layout templates.

Parameters

  • None.

Returns

  • (void)

Description

Resets $this->_view_object to use the Layout templates.

This effectively re-uses the Solar_View object from the page (with its helper objects and data) to build the layout. This helps to transfer JavaScript and other layout data back up to the layout with zero effort.

Automatically sets up a template-path stack for you, searching for layout files (e.g.) in this order ...

  1. Vendor/App/Example/Layout/

  2. Vendor/Controller/Page/Layout/

  3. Solar/Controller/Page/Layout/



Local