草庐IT

TbActiveForm

全部标签

php - 使用 TbActiveForm 选择列表中的动态选项

我在Controller中有以下代码,$model=newGuessgame('search');$model->unsetAttributes();//clearanydefaultvaluesif(isset($_GET['Guessgame']))$model->attributes=$_GET['Guessgame'];$this->render('admin',array('model'=>$model,));在查看文件中,beginWidget('bootstrap.widgets.TbActiveForm',array('id'=>'project1-form','ena