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('非法请求');
}
}
}