コード例 #1
0
 /**
  * 添加模块
  */
 public function addAction()
 {
     if ($this->_request->isPost()) {
         try {
             $this->_module->add($this->_request->getPost());
             $this->_redirect($this->view->url(array('module' => 'admin', 'controller' => 'module', 'action' => 'list'), '', true));
         } catch (Exception $e) {
             $this->view->feedback(array('title' => '发生错误', 'message' => '操作失败:' . $e->getMessage()));
         }
     }
     $this->isload = false;
 }