yii 框架GridView::widget 检索框

要想属性可搜索,需要在在Model的rules 设定可以搜索的属性

public function rules() | public function rules()

    return [

  [['id', 'date', 'type', 'blocked_time', 'create_time'],
 'integer'],

];
}

posted @ 2015-08-14 20:24  li-xingtao  阅读(558)  评论(0编辑  收藏  举报