waLayout

Creation of page layouts

Contents...

Parent class: waController.

Read more about using page layouts.

Layout files & classes

Layouts' PHP files must be located in directory lib/layouts/. Layout class file must be named by rule [app_id][Layout_id].layout.php; e. g., myappBackend.layout.php.

Each layout class must have an HTML template file to form the actual HTML page layout. The template file must be located at templates/layouts/[Layout_id].html; e. g., templates/layouts/Backend.html.

Methods

public function executeAction ($name, waViewAction $action, waDecorator $decorator = null)

Executes specified PHP action and assigns generated HTML code to a template variable.

Parameters

Example

$this->executeAction(new myappBackendNewPageAction());

public function getTheme ()

Returns instance of waTheme class containing information about current frontend design theme.

Example

$theme = $this->getTheme();