Beispiel #1
0
 function stronaAction()
 {
     $oRequest = $this->getRequest();
     $iStrony = $oRequest->getParam('id');
     $strony = new Strony();
     $this->view->strony = $strony->fetchAll();
     $oStrony = new Strony();
     $this->view->oStrony = $oStrony->find($iStrony)->current();
 }
Beispiel #2
0
 function indexAction()
 {
     $oRequest = $this->getRequest();
     $this->view->oRequest = $oRequest;
     $strony = new Strony();
     $this->view->strony = $strony->fetchAll();
     $oRequest = $this->getRequest();
     $iProdukty = $oRequest->getParam('pro_id');
     $oProdukty = new Produkty();
     $this->view->oProdukty = $oProdukty->find($iProdukty)->current();
 }
Beispiel #3
0
 function produktAction()
 {
     $oRequest = $this->getRequest();
     $iProdukty = $oRequest->getParam('pro_id');
     $kategorie = new Kategorie();
     $this->view->kategorie = $kategorie->fetchAll();
     $iProdukty = $oRequest->getParam('pro_id');
     $oProdukty = new Produkty();
     $this->view->oProdukty = $oProdukty->find($iProdukty)->current();
     $strony = new Strony();
     $this->view->strony = $strony->fetchAll();
     $wtyczka = new Wtyczka();
     $this->view->wtyczka = $wtyczka->pobierzGalerie();
     $a = $this->view->wtyczka[0]['online'];
     $this->view->online = $a;
     $b = $this->view->wtyczka[0]['odnosnik'];
     $this->view->odnosnik = $b;
 }
Beispiel #4
0
 public function init()
 {
     // load configuration
     $this->obConfig = new Zend_Config_Ini('../application/configs/application.ini', 'general');
     set_include_path('.' . PATH_SEPARATOR . '../application/models/' . PATH_SEPARATOR . get_include_path());
     // setup database
     $db = Zend_Db::factory($this->obConfig->db->adapter, $this->obConfig->db->config->toArray());
     Zend_Db_Table::setDefaultAdapter($db);
     $wtyczka = new Wtyczka();
     $this->view->wtyczka = $wtyczka->pobierzSzukaj();
     var_dump($this->view->wtyczka[0]['online']);
     $a = $this->view->wtyczka[0]['online'];
     var_dump($a);
     $this->view->online = $a;
     $b = $this->view->wtyczka[0]['odnosnik'];
     $this->view->odnosnik = $b;
     $strony = new Strony();
     $this->view->strony = $strony->fetchAll();
     //initialize Zend Layout
     Zend_Layout::startMvc();
 }
Beispiel #5
0
 function galeriaAction()
 {
     $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;
     $strony = new Strony();
     $this->view->strony = $strony->fetchAll();
 }