多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
> 我们可以在默认Home实例中尝试自己创建一个控制器,控制的名称需要首字符大写,用`.class`作为标识,使用`.php`作为后缀,接下来我们创建一个User控制器,名称为`User.class.php`: ```php <?php namespace App\Home; class User { public function Login() { echo 'Hello,This is the Login method of the User controller!'; } } ``` 在浏览器中输入:`127.0.0.1/index.php/user/login` 即可输出`Hello,This is the Login method of the User controller!`