S
S
scarah2011-01-01 19:06:27
Yii
scarah, 2011-01-01 19:06:27

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

4 answer(s)
S
skarah, 2012-01-02
@skarah

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')));

and everything worked.

N
Nodge, 2011-01-01
@Nodge

Try

'admin/news' => 'admin/news/default/index',

S
Sergey, 2011-01-01
Protko @Fesor

"admin/news" => "admin/news/default/index"
Judging by the function code for starting the controller

S
skarah, 2012-01-02
@skarah

I considered this option from the very beginning, but it does not work - 404 ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question