-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
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
Something wrong with class loader ? #6795
Comments
$config['modules']['debug'] = [
'class'=>'yii\debug\Module',
'allowedIPs'=>'*'
]; |
Thank you, but yii expects allowedIPs to be an array.
|
Same happens when I'm trying to load gii module. Class Aii\gii\Module does not exist |
@sau00 do you read the comments? |
@mdmunir aww, sry, I've fixed it for Debug, but haven't fixed it for Gii module. Thanks. |
the 'AllowedIPs' is not the thing what's wrong Add the class to the modules =>
|
Thx Sir-Magic. Why this issue is closed? Basic and advanced templates should be updated accordingly! They are still buggy. |
Hello everyone, i have an issue with yii2 class loader.
The problem is it somehow messes up class name, i get following error when i edit config/web.php to show debug toolbar for my ip :
Class Aii\debug\Module does not exist
So the problem is it REPLACES first letter of class name from Yii to Aii, i did fresh install with composer several times, on two independent hardware (vagrant VM and my VPS).
It will replace ANY first letter.
I can provide any info about my setup if you ask.
Here is what i added to config/web.php :
(lines i added surrounded by *)
If i add $config['modules']['gii']['allowedIPs'] = ['*']; the same error appears but for gii class.
The text was updated successfully, but these errors were encountered: