Plz help me
Page 1 of 1
How To Create Pagination In Yii
#1
Posted 23 November 2012 - 05:58 AM
I have created pagination in my application.But i don't how to set limit using create Command
Plz help me
Plz help me
#2
Posted 23 November 2012 - 06:05 AM
just read CPagination API reference: http://www.yiiframew...1.1/CPagination
there is even example on how to apply limit on criteria object...
there is even example on how to apply limit on criteria object...
red
#3
Posted 23 November 2012 - 06:17 AM
redguy, on 23 November 2012 - 06:05 AM, said:
just read CPagination API reference: http://www.yiiframew...1.1/CPagination
there is even example on how to apply limit on criteria object...
there is even example on how to apply limit on criteria object...
Thank you for your quick reply
#4
Posted 23 November 2012 - 07:34 AM
you can do this manually then:
$pagination->getLimit(); $pagination->getOffset();
red
#5
Posted 23 November 2012 - 07:53 AM
muppu_g, on 23 November 2012 - 06:17 AM, said:
Thank you for your quick reply
.But my problem here is i don't have model(i mean it is an dynamic model)so i'm using createCommand instead of $criteria.so how to set limit using createCommand 
It is not required to use $model in CPagination.
CPagination has also getter and setter to manipulete the current Page
#6
Posted 13 April 2013 - 02:18 AM
iam trying to paginate datas coming from database but i get this error>>
YiiBase::include(Article.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory <<
can anyone help?
YiiBase::include(Article.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory <<
can anyone help?
Share this topic:
Page 1 of 1

Help














