Esempio n. 1
0
 function init()
 {
     parent::init();
     $this->view->baseUrl = $this->_request->getBaseUrl();
     Zend_Loader::loadClass('Pages');
     $wtyczka = new Wtyczka();
     $this->view->wtyczka = $wtyczka->pobierzSzukaj();
     $a = $this->view->wtyczka[0]['online'];
     $this->view->online = $a;
     $b = $this->view->wtyczka[0]['odnosnik'];
     $this->view->odnosnik = $b;
 }
Esempio n. 2
0
 function init()
 {
     parent::init();
     $this->_helper->layout->setLayout('shoplayout');
     $this->view->baseUrl = $this->_request->getBaseUrl();
     Zend_Loader::loadClass('Produkty');
     Zend_Loader::loadClass('Kategorie');
     Zend_Loader::loadClass('Wtyczka');
     $wtyczka = new Wtyczka();
     $this->view->wtyczka = $wtyczka->pobierzSzukaj();
     $a = $this->view->wtyczka[0]['online'];
     $this->view->online = $a;
     $b = $this->view->wtyczka[0]['odnosnik'];
     $this->view->odnosnik = $b;
 }
Esempio n. 3
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();
 }