CGridView data filters problems

Hi,

i have a problem with CGridView filters

First note: Sorting works, and results show

the problem is, when we type anything in filters and submit nothing happen

my code:

View:


<div class="grid_12">

	<?php 

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

			'dataProvider'=>$dataProvider,

			'filter' => $model,

			'columns'=>array(

				'id:text:ID',

				'status:text:Status',

				'username:text:Username',

				//'password:text:Password',

				'email:text:Email',

				'phone:text:Phone',

				'name:text:Name',

				'sex:text:Sex',

				'birthday:text:Birthday',

				'raffles:text:Raffles',

				

				'membersince:text:Since',

				array(

					'class'=>'CButtonColumn',

					'header'=>'Options',

					'template'=>'{update}{delete}',

					'updateButtonUrl'=>'Yii::app()->createUrl("admin/users/", array("update" =>  $data->id))',

					'deleteButtonUrl'=>'Yii::app()->createUrl("admin/users/", array("delete" =>  $data->id))',

				),

			),

		));

	?>

</div>

Controller:


	public function actionUsers()

	{

		$model = new User();

		if(isset($_GET['User']))

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


		$dataProvider=new CActiveDataProvider($model, array(

			'pagination'=>array(

        		'pageSize'=>50,

    		),

		));




		$params =array(

			'model'			=> $model,

			'dataProvider'	=> $dataProvider,

		);

		if(!Yii::app()->request->isAjaxRequest && !isset($_GET['ajax'])) $this->render('users', $params);

		else  $this->renderPartial('users', $params);

	}



User model type is:


class User extends CActiveRecord

Thanks

I wrote about CGridView + CActiveDataProvider + Searching some while ago.

To sum up, it is an explanation of Gii-generated "admin" page in which CGridView is used to its utmost extent.

http://www.yiiframework.com/forum/index.php?/topic/22197-understanding-widgets-and-searching