Md Jobaidur Rahman
Md Jobaidur Rahman

Reputation: 67

Missing Controller in cakephp

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

Answers (2)

Dipesh Parmar
Dipesh Parmar

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

mark
mark

Reputation: 21743

You got it all backwards.

Its

App::uses('Controller', 'Controller');
class AppController extends Controller {}

Upvotes: 2

Related Questions