AreaController.php 545 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\backend\modules\area\controllers;
  3. use app\backend\modules\area\models\Area;
  4. use app\common\components\BaseController;
  5. /**
  6. * Created by PhpStorm.
  7. * Author: 芸众商城 www.yunzshop.com
  8. * Date: 2017/2/27
  9. * Time: 上午9:17
  10. */
  11. class AreaController extends BaseController
  12. {
  13. /**
  14. *
  15. */
  16. public function selectCity()
  17. {
  18. $citys = Area::getAreasByCity(\YunShop::request()->parent_id);
  19. return view('area.selectcitys', [
  20. 'citys' => $citys->toArray()
  21. ])->render();
  22. }
  23. }