Ejemplo n.º 1
0
 protected function dispatchRequest()
 {
     $jsonModel = new JsonModel();
     try {
         $jsonModel = $this->controller->dispatch($this->getRequest());
     } catch (\Exception $e) {
         echo "\n" . __FILE__ . ':' . __LINE__ . ' Message: ' . $e->getMessage() . ' in ' . $e->getFile() . ':' . $e->getLine();
     }
     return $jsonModel;
 }