xile
- xile 2015-03-23 已签到连续签到1天,获得了5个金钱
- xile 2015-02-26 已签到连续签到1天,获得了5个金钱
- xile 2015-01-13 已签到连续签到2天,获得了10个金钱
- xile 发表了说说Web Application Development with Yii 2 and PHP下载http://pan.baidu.com/s/1sjyRtVZ
- xile 2015-01-12 已签到连续签到1天,获得了5个金钱
试了下,不出现搜索框,
修改['label'=>'客户', 'attribute' => 'customer_name', 'value' => 'customer.customer_name' ]
为['label'=>'客户', 'attribute' => 'customer_name', 'value' => 'customer.customer_name', ,'filter'=>Html::activeTextInput($searchModel, 'customer_name',['class'=>'form-control']) ]
现在搜索框出现了,但是输入后还是不能查询出结果,然后修改gii生成的那个搜索模型文件有个rules方法里将 customer_name 属性加入到安全搜索字段中['customer_name','safe]
这样就可以实现搜索了- xile 2015-01-07 已签到连续签到1天,获得了5个金钱
- xile 回复了话题 页面缓存如何依赖GET参数
你好,我是这样实现的
'variations' => [ \Yii::$app->request->get('page') ],
- xile 2014-12-30 已签到连续签到1天,获得了5个金钱