thinkphp5 SUCCESS ERROR 去哪了

浏览:5635 发布日期:2016/04/28 分类:ThinkPHP5专区
$this->success('保存完成'); $this->error('非法请求');

Call to undefined method app\index\controller\Index::success()
class Index
{
public function update()
{
echo "<meta charset=\"utf-8\">";
if (IS_POST)
{
$User = new Member;
// $User->save(Input::post());
$this->success('保存完成');
} else {
$this->error('非法请求');
}
}
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>