我无法理解Croogo插件加载顺序。我想插件“Ckeditor”在插件“Facebook”之后加载
在facebook的plugin.json中:
{
"name": "Facebook",
"description": "Facebook plugin for demonstrating hook system",
"author": "Author Name",
"authorEmail": "author@facebook.com",
"authorUrl": "http://facebook.com",
"dependencies": {
"plugins": [
"Ckeditor",
"acl",
"extensions"
]
}
}
然后我停用并重新激活facebook以获取更新的plugin.json读取。
Ckeditor继续在facebook之前加载。
任何人都可以帮我改变croogo插件加载顺序吗?
谢谢
答案 0 :(得分:1)
加载顺序在settings
键下的settings.json(以及Hook.bootstraps
表)中“保持”。
您可以使用“设置”外壳手动强制执行订单。查看documentation。
# inspect current value
$ Console/cake settings.settings read Hook.bootstraps
Welcome to CakePHP v2.3.7 Console
---------------------------------------------------------------
App : croogo
Path: /home/rachman/work/personal/deploy/croogo/
---------------------------------------------------------------
Settings:
Hook.bootstraps : Settings,Comments,Contacts,Nodes,Meta,Menus,Users,Blocks,Taxonomy,FileManager,Ckeditor,Wysiwyg
# set a new value
$ Console/cake settings.settings write Hook.bootstraps Settings,Ckeditor,Comments,Contacts,Nodes,Meta,Menus,Users,Blocks,Taxonomy,FileManager,Wysiwyg
Welcome to CakePHP v2.3.7 Console
---------------------------------------------------------------
App : croogo
Path: /home/rachman/work/personal/deploy/croogo/
---------------------------------------------------------------
Updating Hook.bootstraps
- Settings,Comments,Contacts,Nodes,Meta,Menus,Users,Blocks,Taxonomy,FileManager,Ckeditor,Wysiwyg
+ Settings,Ckeditor,Comments,Contacts,Nodes,Meta,Menus,Users,Blocks,Taxonomy,FileManager,Wysiwyg
Confirm update (y/n)
[n] > y
Setting updated