Wildflower CMS is NOT a CakePHP plugin…Baked Simple CMS IS a CakePHP plugin…what's the difference?

瘦欲@ 提交于 2019-12-05 21:42:41

Wildflower CMS uses additional class paths (configured in bootstrap.php) to load itself into your application. The CMS code itself is stored in a wildflower/ subdirectory alongside your application. If you wish to overwrite core Wildflower functionality, I believe you should be able to drag files into your app/ directory to modify them, similarly to how you can do this for some files in the cake/ directory.

CakePHP plugins come with their disadvantages. It is my understanding that the principle of plugins is to allow people to easily share self-contained functionality, therefore making it slightly more complicated to have them communicate with the main app or other plugins, or contain their own configurations or datasources. This allows developers to more easily share blocks of functionality for use in your applications, as they can put the plugin under version control instead of writing a multi-page copy&paste Bakery article.

One conventionally imagines a CMS being the core and plugins being the addons you install for the CMS. The Wildflower developer considered going down the plugin route and then must have realized that what was needed was a level of control not possible with plugins as they exist in CakePHP 1.2, so decided it was more feasible to be the base application.

By utilising this additional class path functionality, Wildflower files will be used when they don't exist in your application. It manages to step out of your way, leaving you a mostly bare app/ directory, by making the order CakePHP looks for files: app/ then wildflower/ then cake/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!