public function index() { $this->view->set('clickaction', 'view'); parent::index(new TicketQueueCollection($this->_templateobject)); $sidebar = new SidebarController($this->view); $sidebar->addList('Actions', array('new' => array('link' => array('modules' => $this->_modules, 'controller' => $this->name, 'action' => 'new'), 'tag' => 'New Queue'))); $this->view->register('sidebar', $sidebar); $this->view->set('sidebar', $sidebar); }
public function index() { $errors = array(); // $this->setSearch('TicketsSearch', 'useDefault'); parent::index(new TicketConfigurationCollection($this->_templateobject)); $this->view->set('clickaction', 'view'); $sidebar = new SidebarController($this->view); $sidebar->addList('Actions', array('new' => array('link' => array('modules' => $this->_modules, 'controller' => $this->name, 'action' => 'new'), 'tag' => 'New Configuration'))); $this->view->register('sidebar', $sidebar); $this->view->set('sidebar', $sidebar); }