public function edit($aid){
if(!empty($aid)){
$Article = M("Article");
$map['aid'] = array('eq',$aid);
$vo = $Article->where($map)->select();
//var_dump($vo);
if($vo){
$this->vo = $vo;
$this->display();
}else{
$this->error('数据错误');
}
}else{
$this->error("aid 错误");
}
}<form method="post" action="__URL__/editArticle">
标题:<input type="text" name="article_title" value="{$vo.article_title}" /><br/>
内容:<textarea rows="10" cols="30" name="article_content" />{$vo.article_content}</textarea><br/>
<input type="hidden" name="aid" value="{$vo.aid}" />
<input type="submit" value="修改" /><br/>
</form>edit.html获取不了vo的数据这是为什么,我想实现的是文章修改功能 最佳答案