123456789101112131415161718192021222324 |
- <?php
- namespace app\controller;
- use think\App;
- use think\facade\View;
- class Index extends Base
- {
- public function __construct(App $app)
- {
- parent::__construct($app);
- }
- public function index()
- {
- return View::fetch();
- }
- public function hello($name = 'ThinkPHP6')
- {
- return 'hello,' . $name;
- }
- }
|