[size="5"]UPDATE :[/size]
I’d like to apologize, I found a thread that addresses this topic. The topic still appears to have no solution at this time. If a solution exists I feel it would be more appropriate to supply it to the following thread:
Hello Everyone,
I just switched over to Yii2 today. I researched the advanced template and decided to go with that. However once I finished mapping my document roots, I received the following error message when trying to access /frontend/web/index.php.
Error : "Calling unknown method: yii\web\UrlManager::addRules()"
[size="5"]Installed app under the following directions:[/size]
- Use composer to install prerequisites
Command : php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced c:/xampp/htdocs/rewardz.us
Picture: Yii2_composer.jpg (attached)
- Init Project
Command: c:/xampp/htdocs/rewardz.us/init
Picture: Yii2_init.jpg (attached)
- Create a new database and adjust the components[‘db’] configuration in common/config/main-local.php accordingly.
Note: I Did also do the Migrate command after configuring the connection
Picture: Yii2_connection.jpg
- Set up document roots :
Picture: Yii2_document_roots.jpg
[size="5"]Results:[/size]
Error : "Calling unknown method: yii\web\UrlManager::addRules()"
See Picture: Yii2_result
Pic 1: Yii2_init
Pic 2: Yii2_composer
Pic 3: Yii2_connection
Pic 4: Yii2_document_roots
Pic 5: Output when loading index.php page
If this thread has already been posted I’d like to apologize for any time wasted reviewing it. If so, could you please submit a link to the thread that address it.
Thanks in advance!