We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi guys,
I try to reach /admin/route/index
but I got this error:
Error Call to undefined method app\models\User::setInstance() 1. in vendor/yiisoft/yii2/base/Module.php at line 428 2. in /vendor/mdmsoft/yii2-admin/models/Route.php at line 211 – yii\base\Module::getModule() 205206207208209210211212213214215216217 protected function getRouteRecursive($module, &$result) { $token = "Get Route of '" . get_class($module) . "' with id '" . $module->uniqueId . "'"; Yii::beginProfile($token, __METHOD__); try { foreach ($module->getModules() as $id => $child) { if (($child = $module->getModule($id)) !== null) { $this->getRouteRecursive($child, $result); } } foreach ($module->controllerMap as $id => $type) { $this->getControllerActions($type, $id, $module, $result);
my user component look like these:
'user' => [ 'identityClass' => 'app\models\User', 'enableAutoLogin' => true, 'loginUrl' => ['site/login'], ],
Any ideas?
Thanks a lot! Tobi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys,
I try to reach /admin/route/index
but I got this error:
my user component look like these:
Any ideas?
Thanks a lot!
Tobi
The text was updated successfully, but these errors were encountered: