public function edit($model = null, $id = 0) { D('Common/Credit')->clear(); is_array($model) || ($model = $this->getModel('credit_confit')); $this->meta_title = '编辑' . $model['title']; parent::common_edit($model, $id, 'Think:edit'); }
public function edit($model = null, $id = 0) { is_array($model) || ($model = $this->getModel($model)); $this->meta_title = '编辑' . $model['title']; parent::common_edit($model, $id); }
public function edit() { parent::common_edit($this->model, 0, T('Think/edit')); }
public function edit($model = null, $id = 0) { if (IS_POST) { $_POST = $this->_check_data($_POST); } else { $post_url = U('edit?uid=' . I('uid')); $this->assign('post_url', $post_url); } $model = $this->getModel('manager_menu'); parent::common_edit($model, $id); }