I tried my best to solve this , but I can't seem to figure out where the problem is. Here is my code:
In action controller
return $this->render('viewcreated', [
'dataProvider' => $dataProvider,
'model' => $this->findModel($id),
'id' => $model->id
/*'searchModel' => $searchModel*/
]);
View
$this->title = $model->id; // here it gives the error
How can I resolve it ?
Any help would be highly appreciated