Hi im trying to use Pagesize everything is fine except i don’t know where to put this
[color="#FF0000 "]// Add below to your model search()
‘pagination’ => array( ‘pageSize’=>Yii::app()->user->getState(‘pageSize’,Yii::app()->params[‘defaultPageSize’]),
)[/color]
I’m using giix to generate my crud do i put it in my base model or put it in the model which extends this model
hope u can help im totally lost bear in mind i’m a total newbie to OOP and Yii.
Ciaran
Hi im trying to use Pagesize everything is fine except i don’t know where to put this
[color="#FF0000 "]// Add below to your model search()
‘pagination’ => array( ‘pageSize’=>Yii::app()->user->getState(‘pageSize’,Yii::app()->params[‘defaultPageSize’]),
)[/color]
I’m using giix to generate my crud do i put it in my base model or put it in the model which extends this model
hope u can help im totally lost bear in mind i’m a total newbie to OOP and Yii.
Ciaran
I’m not sure of the rules regarding bumping my post but i’m really kinda stuck so i apologize.It’s one of those times where the solution is so simple i can’t see it.
Thanks Ciaran.