From 078281eee61afcc55b97f4ff001de65bca4ad974 Mon Sep 17 00:00:00 2001 From: "xiaobo.sun" Date: Mon, 16 Jan 2017 10:47:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff3c4e8..312afe9 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,15 @@ The ThinkPHP5 Addons Package // 多个插件可以用数组也可以用逗号分割 ] ``` +或者在application\extra目录中新建`addons.php`,内容为: +``` +'test' // 键为钩子名称,用于在业务中自定义钩子处理,值为实现该钩子的插件, + // 多个插件可以用数组也可以用逗号分割 +] +``` ## 创建插件 > 创建的插件可以在view视图中使用,也可以在php业务中使用 @@ -31,7 +40,7 @@ The ThinkPHP5 Addons Package