Url Parameters On Module

I’m fairly new on Yii and this is my first serious project using it.

I’m having some issues setting up the url manage for my register user module.

I’ve set the urlManager with these default values




'urlManager'=>array(

			'urlFormat'=>'path',

			'rules'=>array(

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>'

			),

		),



After that i create a link with create url function




$this->createUrl("/registerUsers", array("type"=>"user"))



the generated link is http://www.domain.com/index.php/registerUsers/type/user .

So I suppose the urlManager rules are working.

But the createUrl link throws CHttpException although the "http://www.domain.com/index.php/registerUsers" link works fine and sends me to the index page of my module.

Do i need to set any other rules to make the link work with my url parameters?