class IndexControl extends Control{ public function index() { echo 'Hello YurunPHP!'; }}把文件命名为IndexControl.class.php放到默认模块Home的控制器目录下,访问后在页面上会显示`Hello YurunPHP!`
把文件命名为IndexControl.class.php放到默认模块Home的控制器目录下,访问后在页面上会显示`Hello YurunPHP!`
上一篇 模块 - YurunPHP1.0开发手册
下一篇 wherePk - YurunPHP1.0开发手册
版权所有 ©2023-2025 051e.com
ICP备案号:京ICP备12030808号