How to set url for modules

How set the url for moules

Yii has a default rules for module’s urls. You needn’t to point it manualy.

Just to fill out SiZEs answer: When writing this inside a modules code, it will autmatically refer to the modules controller "user" and action "create":


$this->createUrl('user/create');

There is no need to set it manually unless U want to map all app urls

1 Like



echo CHtml::link('mylink', array('module/controller/action'));

+1 @moginn is the write format