public function init() { parent::init(); global $gANNOTATION_KEYS; $this->annotation_keys = $gANNOTATION_KEYS; $this->_doctrine = \Zend_Registry::get('doctrineEm'); $this->_reader = \Zend_Registry::get('doctrineAr'); $this->entityName = $this->entity; $this->doctrineColumns = $this->getEntityColumnDefs($this->entityName); $this->view->controllerName = $this->controllerName; $this->view->entityLabel = $this->entityLabel; $this->view->entityLabelPlural = $this->entityLabelPlural; $this->responseFormat = $this->getRequest()->getParam('format'); $this->hasFormat = in_array($this->responseFormat, $this->recognizedFormats); if ($this->hasFormat) { $this->_helper->layout()->setLayout('layout_rest'); } }
public function init() { $this->controllerType = 'admin'; parent::init(); }