Пример #1
0
 public function lockAction()
 {
     $id = $this->_request->getParam("id");
     $categoryId = $this->_request->getParam("categoryId");
     $ban = $this->_request->getParam("lock");
     if (!empty($id)) {
         $to_model = new Application_Model_Tocategory();
         $tocategory = $to_model->getTocategoryById($id);
         $to_model->lockTocategory($tocategory);
         $this->redirect("tocategory/list/categoryId/" . $categoryId);
     }
 }