F
F
fuck__all__humans2017-04-24 22:18:41
Yii
fuck__all__humans, 2017-04-24 22:18:41

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

1 answer(s)
M
Maxim Fedorov, 2017-04-25
@qonand

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 question

Ask a Question

731 491 924 answers to any question