Answer the question
In order to leave comments, you need to log in
How to correctly set up routing for subfolders of Yii2 controllers?
Hello. It's been 3 hours and I can't solve the problem. How to properly create subfolders for controllers in Yii2?
at the moment this folder structure
models
controllers
--1.0
----SiteController.php
--1.1
----
SiteController.php
views
called actionIndex() from folder 1.0?
Answer the question
In order to leave comments, you need to log in
as a rule, in major versions, controllers are divided into modules , in minor versions, they use the contentNegotiator behavior. You can read more about organizing versioning here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question