-
-
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
Calling unknown method: yii\web\UrlManager::addRules() #5060
Comments
I also encountered this problem. |
I also encountered this problem. |
我今天上午刚换的YII2.0 刚装上去就是这个提示 |
上面是完成 错误提示 |
Also affects to me |
you too ? |
|
composer install --dev 能行吗,我们这是更新啊。。。 |
чё ? 。。。。。。。。。。。。 |
composer install --dev 这玩意不行啊 |
“composer install --dev ” is don't ok. |
I have the same problem |
The whole world has such a problem. So there is no report;) |
you can speaking china language ? who can help me kill this bug? |
都是中国人,为什么都不说中文,说英文很洋气么? |
I still adapts to the c234359 |
this thing kills me as well.. it was pulling some previous version |
楼上的方法也不行啊…… |
Google translator don't understand you ^_^ |
Почему требует логин и пароль? |
按照你的办法也添加了那段代码,还是不行啊 |
@mousemckill потому, что предоставляются права доступа composer для работы с api GITHUB Посмотреть для кого, что доступно можно по адресу https://github.com/settings/applications |
guys. english please since this is world issue :) |
@bryglen if something is not by English then it is offtopic. :) |
stop!!!!!!!!!!!!!!!!!!! please stop talk this problom of english.....ok? |
NOT OK! My solution help someone? |
I still get sme error @githubjeka |
Now, how to register js/css file?
-->
script generated before jquery |
Use use yii\web\JqueryAsset;
$this->registerJsFile(
Yii::$app->getHomeUrl().'js/docs.min.js',
[
'depends'=>JqueryAsset::className()
]
); The current issue nothing to do with your code |
But guys, I still don't understand. You use this code in yii\debug\Module $app->getUrlManager()->addRules([ But I have not find any declaration of this method: addRules. So, where is declaration of it? |
Current code https://github.com/yiisoft/yii2/blob/master/framework/web/UrlManager.php#L173 Beta code - https://github.com/yiisoft/yii2/blob/2.0.0-beta/framework/web/UrlManager.php hasn't You have beta code. Update your code by #5060 (comment) |
@githubjeka I followed your instruction and get error like below. I also tried to create new fresh project and it always got stuck at "Reading bower.json of bower-assets/requirejs" and then killed the process. Can you help me? Thanks. P/S: I'm using Cygwin + Windows 8.1 + Vagrant CentOS 6.5 |
See #5083 (comment) |
Thanks @githubjeka |
I'm trying code from this page http://www.yiiframework.com/doc-2.0/guide-start-installation.html for installation Yii2 |
Read #5060 (comment) |
Went on vacation for 2 weeks and came back to this. Spent the morning resolving the original issue, and then the issue(s) Shybko had. Was able to resolve by adding bower-asset/jquery etc to my composer.json. |
You must updtae composer to lastes version. |
This #5107 (comment) solution helped me |
http://www.cnsecer.com/6054.html 不要谢我! i am leifeng! |
I have same problem, my console:
Add to composer.json:
Console:
And I have error: My composer.json: https://gist.github.com/gephaest/7e973935161edd5869b7 |
First |
@samdark I did so, but yii2 don't running |
Read guide! what is it |
@gephaest you should use Delete your Then |
@hoksilato thanks. I'm new with Composer. I was following by this instructions: #5060 (comment) :) Your method works fine. Thanks! |
@samdark please lock conversation on this issue and add link to latest guide of installation. :) |
Not? Well, okay. |
Hello! Thank you for your work!
I have updated today by composer and found this error:
http://awesomescreenshot.com/0ff3hzs143
Do you have removed this method anywhere except debug mode?
The text was updated successfully, but these errors were encountered: