Reputation: 179
Hi I am an absolute beginner for cakephp. I have created a controller tasks_controller.php and the class name is TasksController according to cake naming conventions as tasks is my table name in the database.I have put index action in this controller but i run this in browser, I get this error,
Missing Controller
Error: TasksController could not be found.
Error: Create the class TasksController below in file: app\Controller\TasksController.php
}
My url is : localhost/cakephp/tasks/index
I am quite new so don't know how to fix this problem. I am using cakephp 2.4.0.
Please help me in this.
Upvotes: 1
Views: 1726
Reputation: 24334
Create the class TasksController below in file: app\Controller\TasksController.php
You have called your file tasks_controller.php. Read the error carefully ;-)
The naming convention for controller files was updated in cakephp 2.0. Looks like you are using the old 1.x conventions
Upvotes: 3