Example #1
0
 public function init()
 {
     $this->_init();
     $this->_startupAcl();
     $this->_conteudo = new Cms_Model_Conteudo_Mapper();
     $_menu = new Cms_DataView_Menu_MapperView();
     $_menu->load(false);
 }
Example #2
0
 public function init()
 {
     $this->_init();
     $this->_startupAcl();
     $this->_serviceName = 'Cms_Service_Categoria';
     $this->_formName = 'Cms_Form_Categoria_Edit';
     $this->_formSearchName = 'Cms_Form_Categoria_Search';
     $this->_mapper = new Cms_DataView_Categoria_MapperView();
     /**
      * Configuração do Grid
      */
     $name = $this->getRequest()->getParam('name');
     if (!$name) {
         $name = 'categoria';
     }
     $this->setGrid(new ZendT_Grid('grid_' . $name));
     $this->setLayout(ZendT_Controller_Action::LAYOUT_INTRANET);
     $_menu = new Cms_DataView_Menu_MapperView();
     $_menu->load(false);
 }
Example #3
0
 public function init()
 {
     $this->_init();
     $this->_startupAcl();
     $this->_serviceName = 'Cms_Service_Conteudo';
     $this->_formName = 'Cms_Form_Conteudo_Edit';
     $this->_formSearchName = 'Cms_Form_Conteudo_Search';
     $this->_mapper = new Cms_DataView_Conteudo_MapperView();
     /**
      * Configuração do Grid
      */
     $name = $this->getRequest()->getParam('name');
     if (!$name) {
         $name = 'conteudo';
     }
     $this->setGrid(new ZendT_Grid('grid_' . $name));
     $noLayout = $this->getRequest()->getParam('no_layout');
     if ($noLayout) {
         $this->_disableRender(true, false);
     }
     $_menu = new Cms_DataView_Menu_MapperView();
     $_menu->load(false);
 }