function wylaczAction() { $oRequest = $this->getRequest(); if (!$oRequest->getParam('wt_id')) { $this->_redirect('admin/wtyczka'); } $this->view->oRequest = $oRequest; $oWtyczka = new Wtyczka(); $this->view->aWtyczka = $oWtyczka->fetchRow("wt_id={$oRequest->getParam('wt_id')}"); $oConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/wizytowki.ini', 'wizytowki'); $this->view->sWizytowkiKatalog = $oConfig->wizytowki->uri; }