assign('config', $config); return $this->fetch('edit'); } public function send(){ if ($this->request->isPost()) { $data = $this->request->param(); $content=$data['content']; if($content==''){ $this->error("内容不能为空!"); } $this->success("发送成功!"); } } }