Revision #17 has been created by softark on Jul 15, 2013, 10:51:44 PM with the memo:
Fixed a syntax error in a sample code
« previous (#16)
Changes
Title
unchanged
CGridView, CListView and CActiveDataProvider
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
CGridView, CListView, CActiveDataProvider, filter, search, sort, pagination, ajax
Content
changed
[...]
$criteria->compare('address', $this->address, true);
...
return new CActiveDataProvider(get_class($this), array(
'criteria' => $criteria,
'sort' => array(
'defaultOrder' => 'name, address',
'attributes' => array(
'name' => array(
'asc' => 'name address',
'desc' => 'name desc, address',
),[...]