songyichao
- songyichao 评论了源码 慢悠悠地Yii框架源码阅读(1)
什么时候继续更新
- songyichao 发布了教程Yii2 扩展的安装
- songyichao 2016-08-03 已签到连续签到3天,获得了15个金钱
- songyichao 2016-08-04 已签到连续签到4天,获得了20个金钱
- songyichao 2016-08-02 已签到连续签到2天,获得了10个金钱
- songyichao 2016-08-01 已签到连续签到1天,获得了5个金钱
- songyichao 2016-07-25 已签到连续签到1天,获得了5个金钱
- 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]
这样就可以实现搜索了你的实现了吗?我的搜索没有反应