Cgrid Sord - Filter Not Working

My Sort / filter is not working

It is not searching or filtering anything, I have tried printing out the


$_GET['PracticeRegulations']

array put nothing prints

Controller PracticesController




$model = new PracticeRegulations('search');

$model->unsetAttributes();

$model->type='practices';

$model->attributes=$_GET['PracticeRegulations'];

$model->with(array('file'));


$this->render('index', array('model'=>$model));



Index.php




$this->widget('zii.widgets.grid.CGridView', array(

    'id'=>'best-pactices-grid',

    'dataProvider'=>$model->search(),

    'filter'=>$model,

    'enablePagination'=>true,

    'columns'=>array(

        'id',

		array(

			'name'=>'name',

			'type'=>'raw',

			'value'=>'CHtml::link($data->name,$data->file->url,array(target=>_blank))',

		),

        'description',

        'version',

        )

));



Model PracticeRegulations




	public function search()

	{

		// Warning: Please modify the following code to remove attributes that

		// should not be searched.

		$criteria=new CDbCriteria;


		$criteria->compare('practice_regulations.id',$this->id);

		.....

		$criteria->compare('active',$this->active);




		return new CActiveDataProvider($this, array(

			'criteria'=>$criteria,

			'pagination'=>array(

				'pageSize'=>Yii::app()->params['pageSize'],

			),

            'sort'=>array(

				'defaultOrder'=>'t.id DESC',

				'attributes'=>array(

					'name',

					'description',

					'id',

				),

            ),


		));

	}



Can anyone please help

can anyone help with this?