示例#1
0
 public function labelslistAction()
 {
     $id = (int) $this->_getParam('id');
     if (!$id) {
         $this->_redirect('/aktualnosci');
     }
     $this->view->selectedLabel = $id;
     $this->view->actuals = Aktual::getByLabel($id);
     $this->view->labels = Label::getLabelsArr();
     $this->view->showAllLink = true;
     $this->render('index');
 }
示例#2
0
 public function editAction()
 {
     $this->view->labels = Label::getLabelsArr();
     $this->view->actual = $this->view();
     $this->edit();
 }