guide.php 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 15/12/1
  6. * Time: 下午5:39
  7. */
  8. defined('InShopNC') or exit('Access Invalid!');
  9. require_once(BASE_CRONTAB_PATH . '/crawl/class_tree.php');
  10. class guideControl extends mobileHomeControl
  11. {
  12. public function __construct() {
  13. parent::__construct();
  14. }
  15. /**
  16. * 首页
  17. */
  18. public function indexOp()
  19. {
  20. $brands = $this->brand_info();
  21. $ret = array('brands' => array('所有品牌' => $brands));
  22. joutput_data($ret);
  23. }
  24. private function brand_info()
  25. {
  26. $mod_brand = Model('brand');
  27. $items = $mod_brand->field('brand_id,brand_name,brand_pic')->limit(false)->select();
  28. return $items;
  29. }
  30. private function class_info()
  31. {
  32. $mod_class = Model('goods_class');
  33. }
  34. private function write_file()
  35. {
  36. }
  37. }