Пример #1
0
 /**
  * Make controller chain by request.
  *
  * @return Chain
  */
 protected function makeControllerChain()
 {
     $controller = $this->makeController($this->getRequest()->getControllerPath(), $this->getRequest()->getController(), $this->getRequest()->getAction());
     $chain = $this->registry->getKit()->makeControllerChain();
     $chain->push($controller['instance'], $controller['action']);
     return $chain;
 }
Пример #2
0
 protected function getViewToShowError()
 {
     return $this->registry->getKit()->makeView(realpath(PROTECTED_PATH . '/project/views'));
 }