Пример #1
0
 public function featureaddAction()
 {
     $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->addFeatures($pId, $lang, $this->_request->getPost());
         }
     }
     $this->_redirect('/products/featuredit/id/' . $pId . '/lang/' . $lang . '/saved/2/');
 }