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









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?