private function callNavigationMethods($name, $args)
{
$method = lcfirst(substr($name, 10));
switch ($method) {
case 'back':
case 'forward':
case 'refresh':
call_user_func(array($this->_navigate, $method));
break;
case 'to':
call_user_func(array($this->_navigate, $method), $args[0]);
break;
default:
throw new \Exception('Invalid magic call: ' . $name);
}
return;
}