1
私のコントローラコードは、このコードのhtmlspecialchars()以下です。警告を解決する方法htmlspecialchars()は、パラメータ1が文字列であることを期待しています。オブジェクトはyii1で指定されていますか?
public function actionAdmin()
{
$model=new TaskAssignDevloper('search');
$model->unsetAttributes(); // clear any default values
if(isset($_GET['TaskAssignDevloper']))
$model->attributes=$_GET['TaskAssignDevloper'];
$this->render('admin',array(
'model'=>$model,
));
}
私のビューファイルのコードは、この
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'task-assign-devloper-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'id',
'teamleader0',
'task0.title',
'developer0.username',
'description',
array(
'class'=>'CButtonColumn',
),
),
です)); ?>