i like to get the pagination in the CGridView in this format
- normal structure: << < 1 2 3 4 5 6 7 8 9 > >>
- require structure: << < 4 5 6 > >>
is there any solution for this. please help me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simple changing CLinkPager
in your config should be a strings:
Create a file ./protected/components/LinkPager.php
Then when you use CGridView in your code:
By steps above, you creating a new pager class, which is used by CGridView for rendering pager section.