public function demosaveAction() { $pId = 79; $lang = 'en'; if ($this->tplVars['lvals']['canEdit']) { if ($this->_hasParam('pid') && $this->_hasParam('lang')) { $pId = $this->_getParam('pid'); $lang = $this->_getParam('lang'); $products = new AdminProducts(); $products->saveDemo($this->_request->getPost(), $lang); } } $this->_redirect('/products/demoedit/id/' . $pId . '/lang/' . $lang . '/saved/1/'); }