My case is advanced application, amnah user from 5/7/2015. I add components and modules to common configuration.
In the frontend part where urlmanager is enabled - everything works perfect.
In the backend, I do not need urlmanager, so it is not initialized.
The config is:
return [
];
In this configuration /index.php?r=user/login will route to site/error. But with config below (urlManager with prettyUrl enabled) - everything will be fine:
return [
My case is advanced application, amnah user from 5/7/2015. I add components and modules to common configuration. In the frontend part where urlmanager is enabled - everything works perfect. In the backend, I do not need urlmanager, so it is not initialized. The config is:
return [
]; In this configuration /index.php?r=user/login will route to site/error. But with config below (urlManager with prettyUrl enabled) - everything will be fine:
return [
];
Here https://github.com/amnah/yii2-user/blob/master/Module.php#L142 You call to addRules but in documentation http://www.yiiframework.com/doc-2.0/yii-web-urlmanager.html#addRules%28%29-detail is written "Note that if $enablePrettyUrl is false, this method will do nothing."
Thank You for Your work.