【发布时间】:2013-01-13 09:50:45
【问题描述】:
我正在尝试将我的 CakePHP 应用程序从 1.3.6 升级到 2.2.4
我根据官方 CakePHP 升级文档完成了所有升级步骤。
但我正在努力解决这个错误:
在中找不到类“内容” C:\wamp\www\cakephp-2.2.4\app\Controller\Component\OrderBaseComponent.php 在第 20 行
传递给 Component::__construct() 的参数 1 必须是 ComponentCollection,没有给出,调用 C:\wamp\www\cakephp-2.2.4\app\Controller\Component\OrderBaseComponent.php 在第 17 行并定义了 [CORE\Cake\Controller\Component.php,第 77 行]
【问题讨论】:
-
你能显示一些代码吗?如何加载 Content 类?