Routes inconsistencies #565

rakanalh opened this Issue Mar 29, 2012 · 1 comment


None yet
3 participants

I am using the following routes in my config:


When using createUrl inside the view:

<?php echo Yii::app()->createUrl('/users/users/index')?>

The URL is generated as follows http://localhost/yii_proj/backend/users/users/index.

However, when using the CLinkPager, the pages URLs are generated as follows:

Notice that "backend" and "users" are not separated by forward slash

How come those exist?


cebe commented Mar 30, 2012

The array values of your config array are not valid routes.
A route has to be controller/action or /module/controller/action

last line should be:

@samdark samdark closed this Mar 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment