IndexController.php 849 B

123456789101112131415161718192021222324252627
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Released under the MIT License.
  8. // +----------------------------------------------------------------------
  9. // | Author: 老猫 <thinkcmf@126.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\index\controller;
  12. use cmf\controller\HomeBaseController;
  13. class IndexController extends HomeBaseController
  14. {
  15. public function index()
  16. {
  17. return $this->fetch(':index');
  18. }
  19. public function collect(){
  20. return$this->fetch();
  21. }
  22. }