示例#1
0
 function ActionAddAction()
 {
     if ($this->request->name) {
         $a = new ActionModel();
         $a->controller_id = $this->request->cid;
         $a->name = $this->request->name;
         $a->page_title = $this->request->page_title;
         $a->request_key = $this->request->request_key;
         $a->__set('default', $this->request->default);
         $id = $a->save();
         Project::getResponse()->redirect($this->request->createUrl('Dev', 'Actions', array('id' => $id, 'cid' => $this->request->cid)));
     }
     Project::getResponse()->redirect($this->request->createUrl('Dev', 'Actions', array('cid' => $this->request->cid)));
 }