This is the best way to set the page title in the controller. If you want to set a new title, use it.
public function init()
{
$this->view->headTitle('My title');
}
If you want to add a title with an existing name, use
$this->view->headTitle()->setSeparator(' - ')->prepend('Manager');
source
share