I have problems getting the CLinkPager with the rules of my urlmanager to work.
In urlmanager I have the following rules:
'guestbook/<Guestbook_page:\d+>' => 'pages/show/id/9', 'guestbook' => 'pages/show/id/9',
This is simply to beautify the urls. The show action simply calls the guestbook module which fetches the data. Then the render method is called in the show action.
The Linkpager in view:
<?php $this->widget('CLinkPager', array( 'pages' => $data->pagination, )); ?>
The generated urls look like this: h*ttp://localhost/pages/show/9?Guestbook_page=2
but I want them to look like: h*ttp://localhost/guestbook/2
according to the rule set in urlmanager.
However if I do
<?php echo $this->createUrl('/pages/show/id/9', array('Guestbook_page' => 2)); ?>
it gets me my nice looking url.
Am I missing something here or is this a bug in CLinkPager?
Thanks in advance.