예제 #1
0
 function indexAction()
 {
     $oRequest = $this->getRequest();
     if (!$oRequest->getParam('pro_id')) {
         $this->_redirect('admin/produkty');
     }
     $this->view->oRequest = $oRequest;
     $oProdukty = new Produkty();
     $this->view->aProdukt = $oProdukty->fetchRow("pro_id={$oRequest->getParam('pro_id')}");
     $oGaleria = new Galeria();
     $this->view->aGaleria = $oGaleria->fetchAll("gal_pro_id={$oRequest->getParam('pro_id')}");
     $oConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/wizytowki.ini', 'wizytowki');
     $this->view->sWizytowkiKatalog = $oConfig->wizytowki->uri;
 }