는 오류 :
Fatal error: Uncaught Error: Class 'ErrorHandler' not found in C:\[path]\core\cake\libs\object.php on line 211
(!) Error: Class 'ErrorHandler' not found in C:\[path]\core\cake\libs\object.php on line 211
이미 응용 프로그램에서 만든보기를했다 http://localhost/user_accounts/index
방문하려고 할 때 오류가 나에게 무슨 일이 일어나고 \ 전망 \ user_accounts \ 다음 내용이 포함 된 index.ctp :
<div>
Text from div
</div>
나는 g 컨트롤러뿐만 아니라에서 응용 프로그램 \ 컨트롤러 \ user_accounts_controller.php :
<?php
class UserAccountsController extends AppController {
public function index() {
// Render the view in /views/user_accounts/index.ctp
$this->render();
}
}
?>
나는이 컨트롤러 모델을 연결하지 않았기 때문에, 나는이 누락되었습니다 var $uses = array();
. 오류가 더 명백한 경우, 예를 들어 "이 컨트롤러와 관련된 모델이 없습니다"와 같은 경우 시간을 절약 할 수있었습니다.
은 수정했다 :
<?php
class UserAccountsController extends AppController {
// Use this controller without a need for a corresponding Model file.
var $uses = array();
public function index() {
// Render the view in /views/user_accounts/index.ctp
$this->render();
}
}
?>