예제 #1
0
파일: CRUD.php 프로젝트: rom1git/Centurion
 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);
     }
 }
예제 #2
0
파일: API.php 프로젝트: rom1git/Centurion
 public function init()
 {
     parent::init();
     $this->getHelper('ContextAutoSwitch')->direct();
     $this->_request->setParams($this->getHelper('params')->direct());
 }