Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

We got the error in cakephp 1.3.6. version.No idea why and how, please give your advice or solution.

error: Class 'AppController' not found....... in cakephp 1.3.6.

Thanks

Ajay

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
344 views
Welcome To Ask or Share your Answers For Others

1 Answer

In your controller class , use at the top as 1st statement

App::uses('AppController', 'Controller');

Because you are extending AppController , so you first need to import it.Like below.

App::uses('AppController', 'Controller');
class CoursesController extends AppController {/*Your code*/ }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...