Call to undefined method app\index\controller\Course::error()