CLinkPager createPageUrl and params

i use urlmanager with nice urls. but when i use func. createPageUrl in pagination it add to the url end ‘?page=2’. why? i guess i can override it, but why it don’t use urlmanager for example /page/2?

ya true tehy dont use url manager but how can we overwrite complete url instead only ‘?page=2’. ?

If you create an url like the pager :

echo $this->createUrl('news/index', array(

	'page' => '2',


The generated url is : /news/index?page=2

You must enter a rule url in urlManager config like :



        'news/page/<page:\d+>' => 'news/index',



After this rule the generated url is : /news/page/2