Yii Framework Forum: Clistview Sort - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Clistview Sort when sorted dont keep results Rate Topic: -----

#1 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 208
  • Joined: 16-January 12

Posted 17 November 2012 - 02:11 PM

Hello, need help on keep the results.

no more search parameters after sorting .

Any idea?

$this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$model->isearch(),
        'itemView'=>'_view',
    'id'=>'casas',
    'sortableAttributes'=>array('cod_casa','tipo','pessoas','destino'),
    
));

0

#2 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 208
  • Joined: 16-January 12

Posted 17 November 2012 - 03:39 PM

View PostLed, on 17 November 2012 - 02:11 PM, said:

Hello, need help on keep the results.

no more search parameters after sorting .

Any idea?

$this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$model->isearch(),
        'itemView'=>'_view',
    'id'=>'casas',
    'sortableAttributes'=>array('cod_casa','tipo','pessoas','destino'),
    
));



dummy question?

seems to be GET instead of POST.
0

#3 User is offline   Kostas Apazidis (KonApaz) 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,342
  • Joined: 21-February 11
  • Location:Greece

Posted 17 November 2012 - 04:10 PM

what do you mean 'no more search parameters after sorting' ?
what exactly you want to achieve?

Also I think to set
'enableSorting'=>'true',
Yii is the best php framework in the world!
It is also powerful and flexible for large scale websites
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users