Cakephp 2.x获取已加载模型的列表
我陷入了困境Cakephp 2.x获取已加载模型的列表,php,cakephp,cakephp-2.0,Php,Cakephp,Cakephp 2.0,我陷入了困境 Fatal Error Error: Class 'AppModel' not found File: D:\xampp\htdocs\sevenrocks_inventory\app\Controller\FrontendController.php Line: 51 Notice: If you want to customize this error message, create app\View\Errors\fatal_error.ctp 我有支票$
Fatal Error
Error: Class 'AppModel' not found
File: D:\xampp\htdocs\sevenrocks_inventory\app\Controller\FrontendController.php
Line: 51
Notice: If you want to customize this error message, create app\View\Errors\fatal_error.ctp
我有支票$uses变量。它表明
\app\Controller\BaseController.php (line 24)
array(
(int) 0 => 'Customer'
)
控制器是
class PagesController extends FrontendController
{
public $uses = "Customer";
public $layout = "frontend";
public $ext = '.php';
public function beforeFilter()
{
parent::beforeFilter();
$this->Auth->allow();
}
}
然后我得到加载文件的列表。但是我找不到任何Customer.php或AppModel.php。错误发生在
FrontendController.php
中,但您没有显示任何代码。错误发生在FrontendController.php
中,但您没有显示任何代码。