songyichao

songyichao

做一个永不停止前进的web开发者

  • 财富值495
  • 威望值70
  • 总积分1275

个人信息

  • 2016-08-16 已签到
    连续签到4天,获得了20个金钱
  • 2016-08-15 已签到
    连续签到3天,获得了15个金钱
  • 发布了教程
    yii2批量插入数据
  • 回复了 的评论

    试了下,不出现搜索框,
    修改['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',
    	],
    
  • 回复了 的评论

    试了下,不出现搜索框,
    修改['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 实现了

  • 2016-08-13 已签到
    连续签到1天,获得了5个金钱
  • 2016-08-08 已签到
    连续签到1天,获得了5个金钱
  • 2016-08-05 已签到
    连续签到5天,获得了20个金钱
  • 赞了教程
    Yii2 的 redis 应用
  • 顶!d=====( ̄▽ ̄*)b

经理 等级规则
1275/2000
资料完整度
100/100
用户活跃度
0/100

Ta的关注

1

Ta的粉丝

9

Ta的访客

11