Yii Index View Data Rendering With Condition

后端 未结 2 1802
抹茶落季
抹茶落季 2021-01-26 00:34

I am new to yii framework i have created an yii web application with one module . Now my question is i have added an sample data into my module in my module i have an columns n

相关标签:
2条回答
  • 2021-01-26 01:11

    Try adding a criteria

    $criteria->compare('active', '1');
    
    0 讨论(0)
  • 2021-01-26 01:29

    You have to add this in your search function:

    $criteria->compare('active', '1');
    
    0 讨论(0)
提交回复
热议问题