|
楼主 |
发表于 2009-3-15 10:22:42
|
显示全部楼层
我把
function delicious_edit($id)
{
$this->load->model('category_model');
$this->load->model('delicious_model');
$data['query'] = $this->category_model->get_cate(100,'admin/delicious_edit');
$data['action'] = 'edit';
$data['titletext'] = '编辑菜单';
$row =$this->delicious_model->get_onedelicious($id)->row_array();
$data['id'] = $row['id'];
$data['title'] = $row['title'];
$data['content'] = $row['content'];
$data['price'] = $row['price'];
$data['cate_name'] = $row['cate_name'];
$data['d_desc'] = $row['d_desc'];
$this->load->view('admin/delicious',$data);
}
改成
function delicious_edit($id)
{
$this->load->model('category_model');
$data['query'] = $this->category_model->get_cate(100,'admin/delicious_edit');
$data['action'] = 'edit';
$data['titletext'] = '编辑菜单';
$this->load->view('admin/delicious',$data);
}
还是不得。 |
|