category.php 481 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 16/5/9
  6. * Time: 下午9:05
  7. */
  8. defined('InShopNC') or exit('Access Invalid!');
  9. require_once(BASE_ROOT_PATH . '/helper/category_helper.php');
  10. class categoryControl extends mobileControl
  11. {
  12. public function indexOp()
  13. {
  14. //$cats = include BASE_DATA_PATH . '/sales/category.php';
  15. $cats = category_helper::instance()->categories();
  16. return self::outsuccess(array('items' => $cats));
  17. }
  18. }