0

In my index view file i have:

$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
'ajaxUpdate'=>false,
));

A have a lot of records so the pagination appears. The problem is when i go to second page /actor/index?Actor_page=2. I need a way to format this url into a more friendly one, for example: /actor/page/2. How can i achieve this?

2 Answers 2

1

Check this topic on yii url management, I guess what you need can be achieved with 'urlFormat'=>'path',

Sign up to request clarification or add additional context in comments.

Comments

0

Break up your uri into segemnts explode('/', uri), then check for int or string..

remove base uri from segment and assign[0][1][2] to certain segments in your framework

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.