tp6框架的销售统计系统

Index.php 354B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\controller;
  3. use think\App;
  4. use think\facade\View;
  5. class Index extends Base
  6. {
  7. public function __construct(App $app)
  8. {
  9. parent::__construct($app);
  10. }
  11. public function index()
  12. {
  13. return View::fetch();
  14. }
  15. public function hello($name = 'ThinkPHP6')
  16. {
  17. return 'hello,' . $name;
  18. }
  19. }