Пример #1
0
 public function demodropAction()
 {
     $pId = 79;
     $lang = 'en';
     if ($this->tplVars['lvals']['canDelete']) {
         if ($this->_hasParam('pid') && $this->_hasParam('did') && $this->_hasParam('lang')) {
             $pId = $this->_getParam('pid');
             $dId = $this->_getParam('did');
             $lang = $this->_getParam('lang');
             $products = new AdminProducts();
             $products->dropDemo($dId, $lang);
         }
     }
     $this->_redirect('/products/demoedit/id/' . $pId . '/lang/' . $lang . '/');
 }