Answer the question
In order to leave comments, you need to log in
Is it possible to get all possible routes of an application in Yii2?
For example, routes are described as follows:
[
'GET /' => 'default/index',
'POST /' => 'default/login',
'OPTIONS /' => 'default/options',
[
'class' => 'yii\rest\UrlRule',
'controller' => ['place', 'service', 'employee'],
]
]
Answer the question
In order to leave comments, you need to log in
php yii routes - display all routes variants (not only first match).
php yii routes posts - display all routes for given controller.
php yii routes posts/view - display all routes for given controller action.
And a useful link:
https://github.com/yiisoft/yii2/issues/1763
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question