有时找不到插件应用程序控制器

Sometimes plugin app controller is not found

有时我在使用我的插件时会遇到这种错误:

Class PluginNameAppController not found in ...

这真的很奇怪,因为我使用 App::uses();

在任何控制器之前连接插件 AppController

这个错误是随机出现的,然后,我刷新当前页面(或清理tmp\cache\persistent)它就消失了。

我在 Config/bootstrap.php 中连接了 3 个插件,我认为它们有些冲突。

蛋糕php 2.6.0.

使用

Configure::write('Cache.viewPrefix', 'prefix');

具有不同的值 在 PluginAppController 的 beforeFilter 函数中。

好的,问题仍然没有解决,但这里有几个解决方案:

  1. 在 core.php 中注释这行:chopapp.com/#i5x18g0p
  2. 在 core.php 中取消注释 Cache.disableConfigure::write('Cache.disable', true);