Answer the question
In order to leave comments, you need to log in
How to organize multiple dependent projects in Zend Framework 3?
I'll start with an analogy. There is such a Yii2 framework, and when it is installed via composer in the advanced option , all the necessary directory structure is immediately deployed.
composer create-project --prefer-dist yiisoft/yii2-app-advanced yii-application
Answer the question
In order to leave comments, you need to log in
As an example, you create a module, for example Crm, make your home directory on /public of the project.
And in the module config you make such a route
'crm-subdomain' => [
'type' => Hostname::class,
'options' => [
'route' => 'crm.localhost',
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'index',
]
],
'may_terminate' => true,
'child_routes' => [
'index' => [
'type' => Segment::class,
'options' => [
'route' => '[/:action][/]',
'constraints' => [
'action' => '[a-z0-9\-]+',
],
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'index',
]
]
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question