songyichao
- songyichao 2016-08-16 已签到连续签到4天,获得了20个金钱
- songyichao 2016-08-15 已签到连续签到3天,获得了15个金钱
- songyichao 发布了教程yii2批量插入数据
- songyichao 回复了 xile 的评论
试了下,不出现搜索框,
修改['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]
这样就可以实现搜索了@MrHao
[
'attribute' => 'name', 'filter' => Html::activeTextInput($model, 'name', [ 'class' => 'form-control', 'id' => null ]), 'label' => 'name', ],
- songyichao 回复了 xile 的评论
试了下,不出现搜索框,
修改['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]
这样就可以实现搜索了@MrHao 实现了
- songyichao 2016-08-13 已签到连续签到1天,获得了5个金钱
- songyichao 2016-08-08 已签到连续签到1天,获得了5个金钱
- songyichao 2016-08-05 已签到连续签到5天,获得了20个金钱
- songyichao 评论了源码 Yii2实现无限级分类的类
顶!d=====( ̄▽ ̄*)b