<?php
class ErrorController extends ControllerBase
{
public function show404Action()
{
$this->$dispatcher->forward(array(
'controller' => 'index',
'action' => 'index'
));
return false;
}
public function show401Action()
{
//echo "show401"; die();
}
public function show500Action()
{
}
}
When show404 action is fired, that code gives me the following notice:
PHP Notice: Undefined variable: dispatcher
Should I define $this->dispatcher somehow?