I'm doing the following in a view:
<li><a href='<? Yii::app()->controller->createUrl('sources'); ?>'>sources</a></li>
However 'sources' is not appended to the path, instead the code just returns the path to the current controller.
Could anyone suggest why this might me? The code is in a module.
My url rules are as follows:
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),