/** * Update Action * 编辑 * * @return void */ public function get_edit() { if ($this->pk_id) { $data = $this->model->find($this->pk_id); $this->on('get_edit_query_before'); $this->assign('data', $data); $this->assign('category', $this->category()); $this->on('get_edit_query_after'); $this->display(); } else { Response::_404('不存在id值'); } }