Answer the question
In order to leave comments, you need to log in
Rule for urlManager in Yii when nested module?
Good day!
Help me figure out how to write a rule in urlManager for a nested module. Those. there is a news module, which in the application lies in modules/admin/modules/news. What rule is needed for the /admin/news url to open actionIndex in the defaultController in the news module?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Everything worked, I added in the config in modules instead of 'admin' 'admin'=>array('modules'=>array('news')), as a result it turned out
'modules'=>array(
'admin'=>array('modules'=>array('news')));
"admin/news" => "admin/news/default/index"
Judging by the function code for starting the controller
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question