Код: Выделить всё
public function actionPeople() {
$model = new People();
$model->unsetAttributes(); y
if (isset($_GET['People']))
$model->attributes = $_GET['People'];
$this->render('people', array(
'model' => $model,
));
}
Код: Выделить всё
$this->widget('bootstrap.widgets.TbGridView', array(
'type' => 'striped bordered condensed',
'id' => 'people-grid',
'type' => 'striped bordered condensed',
'dataProvider' => $model->search(),
'columns' => array(
array(
'name' => 'people_id',
'type' => 'raw',
'value' => '$data->people_id',
),
array(
'name' => 'name',
'type' => 'raw',
'value' => '$data->name',
),
array(
'class' => 'bootstrap.widgets.TbButtonColumn',
),
),
));