thinkphp-base-starter/app/controller/Index.php

19 lines
255 B
PHP

<?php
namespace app\controller;
use app\BaseController;
class Index extends BaseController
{
public function index()
{
return 'index';
}
public function hello($name = 'ThinkPHP8')
{
return 'hello,' . $name;
}
}