Exemple #1
0
 /**
  * @param string $module
  * @param string $controller
  * @param array $params
  * @return \Bluz\Controller\Controller
  * @throws \Exception
  */
 public function dispatch($module, $controller, $params = array())
 {
     $this->dispatchModule = $module;
     $this->dispatchController = $controller;
     try {
         return parent::dispatch($module, $controller, $params);
     } catch (\Exception $e) {
         $this->setException($e);
         throw $e;
     }
 }
Exemple #2
0
 /**
  * @param string $module
  * @param string $controller
  * @param array $params
  * @return \Bluz\View\View|string
  */
 public function dispatch($module, $controller, $params = array())
 {
     $this->dispatchModule = $module;
     $this->dispatchController = $controller;
     return parent::dispatch($module, $controller, $params);
 }