Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->_links['Edit properties'] = $this->view->url(array_merge($this->_extraParam, array('controller' => $this->_request->getControllerName(), 'module' => $this->_request->getModuleName(), 'id' => '###id###')));
     $this->_links['Delete'] = array('params' => array('class="zf-actions-delete"'), 'url' => $this->view->url(array_merge($this->_extraParam, array('controller' => $this->_request->getControllerName(), 'module' => $this->_request->getModuleName(), 'id' => '###id###'))));
     if (null !== $this->_firstRow['label']) {
         $this->_extras['firstRow'] = $this->_firstRow['label'];
         $this->_sortColumnsList = array_merge(array('firstRow' => null), $this->_sortColumnsList);
     }
 }
Ejemplo n.º 2
0
 public function init()
 {
     parent::init();
     $this->getHelper('ContextAutoSwitch')->direct();
     $this->_request->setParams($this->getHelper('params')->direct());
 }