0

this is probably very easy to do, but I can't seem to figure it out. How do I get the list of components of a plugin in a cakePHP application (I just want the components' class names).

Thanks for any help

4

1 回答 1

1

我认为在 1.3 中这应该有效:

App::objects('PluginName.Component');

但你总能得到路径:

$path = CakePlugin::path('PluginName');

并手动遍历组件文件夹。

于 2012-08-08T18:18:15.257 回答