It seems that I have to change the view files and I don’t know why? I used Gii to generate the models and CRUD…
My view file “index.php” for Users has:
‘urlCreator’ => function ($action, Users $model, $key …
And I have to change it to
‘urlCreator’ => function ($action, \app\models\Users $model, $key
How to I prevent having to change every view file? so I can use “Users $model” instead of “\app\models\Users $model” ?