Zend\Mvc\Controller\Plugin\Layout::__invoke
Invoke as a functor
If no arguments are given, grabs the "root" or "layout" view model. Otherwise, attempts to set the template for that view model.
Signature
public function __invoke([null|string
$template = null] )
Parameters
$template
— object
Returns
- Model|Layout