efficacy.php 729 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * 前台品牌分类
  4. *
  5. *
  6. *
  7. ***/
  8. defined('InShopNC') or exit('Access Invalid!');
  9. class efficacyControl extends mobileHomeControl
  10. {
  11. public function __construct() {
  12. parent::__construct();
  13. }
  14. public function indexOp(){
  15. }
  16. public function efficacy_listOp()
  17. {
  18. $efficacy_list = Model()->table('goods_efficacy')->order('sort asc')->select();
  19. $result = array();
  20. foreach ($efficacy_list as $value) {
  21. $item['efficacy_id'] = $value['efficacy_id'];
  22. $item['efficacy_name']=$value['efficacy_name'];
  23. array_push($result,$item);
  24. }
  25. joutput_data(array("efficacy"=>$result));
  26. }
  27. }