1

I'm very new in Yii.

My question is in the subject. I have three modules, they all have a default Controller I have the following URL : www.xxx.com/module/default/action

And I would like to have this : www.xxx.com/module/action

Please help me I can't figure it out, althought I have read a lot of topics about it, I don't understand them...

Thanks

1

1 Answer 1

5

if you are using modules inside your project you need to add these lines to remove defaulcontroller from url in you config url manager

 '<module:\w+>/<action:\w+>/<id:(.*?)>' => '<module>/default/<action>/<id>',
            '<module:\w+>/<action:\w+>' => '<module>/default/<action>',
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.