Иерархическая структура сайта
The preferred way to install this extension is through composer.
Either run
php composer.phar require reketaka/yii2-nodes-tree
or add
"reketaka/yii2-nodes-tree": "*"
Add to your web.php
'components' => [
'urlManager' => [
'class'=>'\reketaka\nodes\components\UrlManager'
]
]
'modules'=>[
'nodes'=>[
'class'=>'reketaka\nodes\Module',
'controllerScanPathAr'=>[
'namespace'=>'dir_path'
],
'homePage' => ['/site/index']
]
]
to the require section of your composer.json
file.