Search filter not working

After creating a new model and controller with Gii tool i changed the layout used by the controller. All CRUD operations still work but not the search filter accessible by the index.php?r=ControllerName/admin. The advanced search link doesn’t open the hidden form.

Any solutions?

Thanks

Cristiano

hi,

Here Following Shown is Customize Grideview with Filter

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

			'id'=>'tblDemo',


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


			'filter'=>$model,


			'emptyText'=>'There is No Such Row Exis',


			'pager' => array('class' => 'CLinkPager', 'header' => '', ),


			'summaryText' => '  Following  {start} - {end} of {count} ',


			'columns'=>array(


			//array('name'=>'Code','value'=>$data->Code,'header'=>'Code',),		


			array(


					'header' => 'Col1',


					'name' => 'col1',


					'type' => 'html',


					'value' => 'SetNA($data -> col1)',


				),





			array('name'=>'Col2','value'=>$data->Col2,'header'=>'Col12',),		


			array(


					'header' => 'Col3',


					'name' => 'Col3',


					'type' => 'html',


					'value' => 'l($data -> Col3)',


				),


				


				 array(


					'header' => 'Col4',


					'name' => 'Col4',


					'type' => 'Col4',


					'value' => 'l($data ->Col4)',


				),





				array(


					'header' => 'Col5',


					'name' => 'Col5',


					'type' => 'html',


					'value' => 'url($data -> Col5)',


				),


				


				array(


					'class'         => 'CLinkColumn',


					'header'        => '',


					'urlExpression' => '$data->GetEditUrl()',


					'imageUrl'      => Yii::app()->baseUrl . '/images/' . 'edit.png',


					'htmlOptions'=>array('title'=>'Edit ')


				),


				array(


					'class'         => 'CLinkColumn',


					'header'        => '',


					'urlExpression' => '$data->GetUrlDel()',


					'imageUrl'      => Yii::app()->baseUrl . '/images/' . 'delete.jpg',


					'htmlOptions'=>array('title'=>'Delete Row')


				)


						 


				),





		));

Thank you… I found the solution. The new layout has some javascript inclusion which were conflictual with the Assets included by yii. I moved the title tag in the bottom of the <head> section , so now the assets are included as last elemets and are not overwritten anymore.