コード例 #1
0
 public function demoaddAction()
 {
     $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->addDemo($pId, $lang, $this->_request->getPost());
         }
     }
     $this->_redirect('/products/demoedit/id/' . $pId . '/lang/' . $lang . '/saved/2/');
 }