예제 #1
0
 /**
  * (non-PHPdoc)
  * @see Core_Controller_Action_CrudDto::createAction()
  */
 public function createAction()
 {
     parent::createAction();
     if ($this->_getParam('sqSistema')) {
         $this->view->data->getSqSistema()->setSqSistema($this->_getParam('sqSistema'));
     }
     $this->view->pageTitle = 'Cadastrar Menu';
 }
 public function createAction()
 {
     $session = Core_Integration_Sica_User::has();
     if ($session) {
         Core_Integration_Sica_User::destroy();
         $this->_redirect('usuario-externo/login');
     }
     $this->view->dtCadastro = \Zend_Date::now()->toString('yyyy-MM-dd hh:mm:ss');
     parent::createAction();
 }
 /**
  * (non-PHPdoc)
  * @see Core_Controller_Action_CrudDto::createAction()
  */
 public function createAction()
 {
     parent::createAction();
     if ($this->_getParam('sqSistema')) {
         $this->view->data->getSqMenu()->getSqSistema()->setSqSistema($this->_getParam('sqSistema'));
     }
 }
예제 #4
0
 /**
  * Tela de criação
  *
  * @see    Core_Controller_Action_CrudDto::createAction()
  * @return void
  */
 public function createAction()
 {
     parent::createAction();
     $this->view->architetures = $this->getService()->findAllArchitetures();
     $this->view->layouts = $this->getService()->findAllLayouts();
     if ($this->_helper->persist->has('sqArquitetura')) {
         $this->view->data->getSqArquitetura()->setSqArquitetura($this->_helper->persist->get('sqArquitetura'));
     }
     if ($this->getHelper('persist')->has('responsavel')) {
         $this->view->responsavel = $this->getHelper('persist')->get('responsavel');
     } else {
         $this->view->responsavel = $responsavel = $this->getService('PessoaFisica')->findDataInstitucional(NULL);
     }
 }