Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Yii 是否支持 CArrayDataProvider(Yii 1.1.2)的内置多列排序,如果是,请告诉我我们该怎么做,我是 yii 的新手。
谢谢你。
尝试以下(Yii API Doc 示例):
$dataProvider=new CArrayDataProvider($rawData, array( 'id'=>'user', 'sort'=>array( 'multiSort'=>true, 'attributes'=>array( 'id', 'username', 'email', ), ), 'pagination'=>array( 'pageSize'=>10, ), ));