A Step by step guide for adding jQuery Tabswith CClipWidget:
Hope you find this useful as its very easy to implement.
http://iblogcode.com/articles/jquery-tabs-with-yii-2012-08-06-08-21-33
http://www.yiiframework.com/wiki/8/
Monday, January 21, 2013
Tuesday, January 15, 2013
YII: Changing Number of Items in the GGridView
In order to change the number of items in the GGridView, you can go to model and find search() method and add the following.
public function search()
{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('id',$this->id);
....
return new CActiveDataProvider(get_class($this), array(
'criteria' => $criteria,
'pagination' => array( // pagination property
'pageSize' => 30, // page size
), //
));
}
Subscribe to:
Posts (Atom)