Method | Description | |
---|---|---|
getContent ( ) : string | Returns cached output from another view stage | |
getVar ( string $name = null ) : mixed | Returns a parameter previously set in the view | |
partial ( string $path, array $vars = [] ) | Renders a partial view | |
pick ( string $view ) : static | Choose a view different to render than last-controller/last-action | |
render ( string $controller, string $action ) | Executes render process from dispatching data | |
setContent ( string $content ) : static | Externally sets the view content | |
setLayout ( false | string $layout = 'Default' ) : static | ||
setVar ( string $name, mixed $value ) : static | Adds parameter to view | |
setVars ( array $vars ) : static | Adds parameters to view | |
widget ( string $widget, array $vars = [], integer | array $cacheOptions = null ) | Renders a widget |
public getContent ( ) : string | ||
return | string |
Show a partial inside another view
$this->partial('shared/footer');
Show a partial inside another view with parameters
$this->partial('shared/footer', array('content' => $html));
public setContent ( string $content ) : static | ||
$content | string | |
return | static |