NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## 路由 ~~~ URL 型如 http://domain/index1/index2/index3-hello index1 对应 App/Controller/Index1 文件夹名称 index2 对应 App/Controller/Index1/Index2.php 文件名 index3 对应 App/Controller/Index1/Index2.php <?php namespace Index1; use Ctrl\Controller; Class Index2 extends Controller { public function Index3Hello () { } } ~~~ ## 命名规则 Controller 遵循驼峰规则 Url中的 hello-word => HelloWord ~~~ Ps : 其实驼峰计算对性能还是有损耗的--只是为了好看一点-- 一堆的 hello_word 或者 helloword 貌似 还是 HelloWord 好看点 ~~~