Answer the question
In order to leave comments, you need to log in
Why might routing not work in Yii2?
Will All explain this behavior of yii2?
Here is a snippet of the rules from the URLmanager settings:
'/kvartiry_novostroyki/' => 'novostroyki/index',
'/kvartiry_novostroyki/<building:\w+>' => 'novostroyki/index',
'/kvartiry_novostroyki/<building:\w+>/<flat:\w+>' => 'novostroyki/flat',
'/kvartiry_novostroyki/<building:\w+>/photoreports' => 'novostroyki/photoreports',
'/kvartiry_novostroyk/<building:\w+>/photoreports' => 'novostroyki/photoreports',
public function actionPhotoreports() {
echo 'test';
exit;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question