Reputation: 67
I have found the following error:
Error: Controller could not be found. Error: Create the class Controller below in file: app\Controller\Controller.php
<?php
class Controller extends AppController {
}
what I have to do to solve this problem,please suggest me
Upvotes: 2
Views: 3942
Reputation: 27354
Controller
class is already reserved for cakephp core library.
You can not use controller
as class because AppController
already extending Controller
class of cakephp.
Upvotes: 0
Reputation: 21743
You got it all backwards.
Its
App::uses('Controller', 'Controller');
class AppController extends Controller {}
Upvotes: 2