Answer the question
In order to leave comments, you need to log in
How to specify in urlManager that the controller is in the controllers/api folder?
[
'class' => 'yii\rest\UrlRule',
'controller' => ['api/user'],
'pluralize' => false,
'extraPatterns' => [
'GET index' => 'view',
'PUT index' => 'update',
],
Answer the question
In order to leave comments, you need to log in
Everything you need is in the docs:
https://www.yiiframework.com/doc/guide/2.0/en/stru...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question