Esempio n. 1
0
 public function deleteAction()
 {
     if ($this->_hasParam('id') && $this->tplVars['lvals']['canDelete']) {
         $products = new AdminProducts();
         $products->deleteProduct($this->_getParam('id'));
     }
     $this->_redirect('/products/list/');
 }