0

我无法理解 Croogo 插件加载顺序。我想在插件“Facebook”之后加载插件“Ckeditor”

在 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插件加载顺序?

谢谢

4

1 回答 1

1

加载顺序在键下的 settings.json(以及settings表中)中是“持久的” Hook.bootstraps

您可以使用 Settings shell 手动强制排序。查看文档

# 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
于 2013-07-20T09:46:54.700 回答