I have made a post in Facebook: "Yii2 PHP framework" group "/yii2talk/permalink/2037978059776059/".
I understood that it’s place is here, by the moderator announcement. So, I ask you here too. If needed - I’ll remove the post in Facebook.
I have read many tutorials, but I cannot find one routing configuration.
I have a question about the routes in Yii2.
I’m interested in how to disable the “<controller>/index” pattern from the below passage, but keep only “<controller>” pointing to “<controller>/index”.
Please, advise me.
‘urlManager’ => [
'enablePrettyUrl' => true, 'enableStrictParsing' => true, 'rules' => [ '<controller>' => '<controller>/index', '<controller>/<action>' => '<controller>/<action>', ],
I don’t like the idea to make exceptions in the controllers, because I have to make some in any controller.
Thank you, all!