$Model=D('Article');
$post=I('post.','','trim');
$data=$Model->create($post);
if(!$data) $this->error($Model->getError());
$id=$Model->add($data);
if($id) $this->success('添加成功',U('index'));
else $this->error('添加失败');
}
运行出现404错误,我如果不用D改用M就可以,是什么原因。在本地php5.5上运行都正常的
QQ截图20160810190938.png
( 109.99 KB 下载:6 次 )
最佳答案
