function wylaczwtyczkaAction() { $oRequest = $this->getRequest(); if (!$oRequest->getParam('wt_id')) { echo 'problem z pobrnie parametru'; } $wt_id = (int) $this->_request->getPost('wt_id'); $onlinee = 1; $wtyczka = new Wtyczka(); if ($wt_id !== false) { if ($onlinee != '') { $data = array('online' => $onlinee); $where = 'wt_id = ' . $wt_id; $wtyczka->update($data, $where); $this->_redirect('/admin/wtyczka'); return; } } }