$template
$template : string
The template ident (to load).
setTemplate(string|null $template) : \Charcoal\App\Handler\HandlerConfig
string|null | $template | The template identifier. |
If the tempalte parameter is not null or not a string.
Chainable
setController(string $controller) : \Charcoal\App\Handler\RouteConfig
Set handler view controller classname
string | $controller | Handler controller name. |
If the handler view controller is not a string.
Chainable
setEngine(string|null $engine) : \Charcoal\App\Handler\HandlerConfig
string|null | $engine | The engine identifier (mustache, php, or mustache-php). |
If the engine is not null or not a string.
Chainable
setTemplateData(array $templateData) : \Charcoal\App\Handler\HandlerConfig
Set the template data for the view.
array | $templateData | The route template data. |
Chainable
setCache(boolean $cache) : \Charcoal\App\Handler\HandlerConfig
boolean | $cache | The cache enabled flag. |
Chainable
setCacheTtl(integer $ttl) : \Charcoal\App\Handler\HandlerConfig
integer | $ttl | The cache Time-To-Live, in seconds. |
Chainable