/* @var $this getControllerClass(); ?> */ /* @var $model getModelClass(); ?> */ pluralize($this->class2name($this->modelClass)); echo "\$this->breadcrumbs=array( '$label'=>array('index'), 'Manage', );\n"; ?> $this->menu=array( array('label'=>'List modelClass; ?>', 'url'=>array('index')), array('label'=>'Create modelClass; ?>', 'url'=>array('create')), ); Yii::app()->clientScript->registerScript('search', " $('.search-button').click(function(){ $('.search-form').toggle(); return false; }); $('.search-form form').submit(function(){ $('#class2id($this->modelClass); ?>-grid').yiiGridView('update', { data: $(this).serialize() }); return false; }); "); ?>
You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.
'search-button')); ?>"; ?> $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'class2id($this->modelClass); ?>-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, 'columns'=>array( tableSchema->columns as $column) { if(++$count==7) echo "\t\t/*\n"; echo "\t\t'".$column->name."',\n"; } if($count>=7) echo "\t\t*/\n"; ?> array( 'class'=>'CButtonColumn', ), ), )); ?>