Answer the question
In order to leave comments, you need to log in
Yii2 Self Routing. How to write paths correctly?
How to write paths correctly? Something I hung ...
There is an "admin panel" module as a vendor.
'admin' => [
'class' => '*****\******\modules\admin\Module'
],
...
class UrlManager extends \yii\web\UrlManager{
public function init(){
$this->rules = [
'admin/dashboard'=>'admin/index' // <-- как правильно здесь нужно указать путь к контроллеру находящегося в вендоре что и админка?
];
return parent::init();
}
}
Answer the question
In order to leave comments, you need to log in
the path to the controller located in the vendor as the admin panel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question