NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
### extend > 在controller 或 model 中引入: ``` use Extend\extend_function; ``` > 在方法中实例化: ``` $e = new extend_function(); ``` > 调用演示 ``` $e -> test(); ``` * 开发者可通过 Extend/extend_function.php 文件中增加其它可扩展的功能函数方法。 **默认代码:** ``` /* * 用户可扩展函数 */ namespace Extend; class extend_function { public function __construct() { } public function test() { echo "this demo."; } } ```