Previous Page
_setContentType()

Solar_App_HelloApp
_setLayoutTemplates()

Next Page
_setViewObject()

_setLayoutTemplates()

protected Solar_View _setLayoutTemplates ( )

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

Inherited from Solar_Controller_Page.

Parameters

  • None.

Returns

  • (Solar_View)

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 in this order ...

  1. Vendor/App/Example/Layout/

  2. Vendor/App/Layout/

  3. Solar/App/Layout/