Exemplo n.º 1
0
 public function indexAction()
 {
     $id = (int) $this->_getParam('id', 0);
     if (empty($id)) {
         $this->_redirect('/company');
     }
     $dataSubsidiary = Default_Model_Subsidiary::getRow($id);
     if (!$dataSubsidiary) {
         $this->_redirect('/company');
     }
     $this->view->name = $dataSubsidiary['name'];
     $this->view->id = $dataSubsidiary['id'];
     $this->addYosonVar("idSubsidiary", $id);
     $objMovie = new Default_Model_Movie();
     $movie = $objMovie->listJson();
     $this->addYosonVar('movie', Zend_Json_Encoder::encode($movie), false);
 }
Exemplo n.º 2
0
 public function indexAction()
 {
     $id = (int) $this->_getParam('id', 0);
     if (empty($id)) {
         $this->_redirect('/subsidiary');
     }
     $dataCompany = Default_Model_Subsidiary::getRow($id);
     var_dump();
     exit;
     if (!$dataCompany) {
         $this->_redirect('/subsidiary');
     }
     $this->view->name = $dataCompany['name'];
     $this->addYosonVar("idSubsidiary", $id);
     $objUbigeo = new Default_Model_Ubigeo();
     $ubigeo = $objUbigeo->listStateJson();
     $this->addYosonVar('ubigeo', Zend_Json_Encoder::encode($ubigeo), false);
     $this->view->idSubsidiary = $id;
 }