Beispiel #1
0
 /**
  * Display
  *
  * @return  void
  */
 public function displayTask()
 {
     // Set the default view name and format from the Request.
     $vName = Request::getCmd('view', 'cache');
     $data = $this->model->data();
     $client = $this->model->client();
     $pagination = $this->model->pagination();
     $state = $this->model->state();
     // Check for errors.
     if (count($errors = $this->model->getErrors())) {
         App::abort(500, implode("\n", $errors));
     }
     Helper::addSubmenu($vName);
     $this->view->set('data', $data)->set('client', $client)->set('state', $state)->set('pagination', $pagination)->setLayout($vName)->display();
 }