I tried to call a ModelSearch and Render the view in another controller. Bu t I have this error
7643
I have tried debug but no solution. I tries to render another view (index), it works perfectly, except this
Controller
public function actionsAvailableCourses()
{
$user = Yii::$app->getid->getId();
$instructorSession = Yii::$app->session->get('instructor_id');
$searchModel = new \app\modules\course\models\CoursesSearch();
$dataProvider = $searchModel->searchcoursegroupings(Yii::$app->request->queryParams, $user);
$dataProvider->pagination->pageSize=3;
return $this->render('available-courses', [
'user'=>$user,
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
What could be the problem.
Thanks