Installed cake php in my server in this root C:\localhost\cake I have the items_controller.php file. I am thinking for some reason the application does not know where the controller file is present. The complete error is :
items_controller.php
Missing Controller Error: ItemsController could not be found. Error: Create the class ItemsController below in file: app\Controller\ItemsController.php
<?php class ItemsController extends AppController { }
I have .htacess and index.php files in respective folder Can someone please help.
.htacess
index.php
Controller class names are plural, CamelCased, and end in Controller. So your controller name should be ItemsController.php not items_controller.php. See here for more info on Controllers.
ItemsController.php
class ItemsController extends AppController { //class code here }
you should create controler inside the app\Controller\
you should create controler inside the
For more details about Controller here
try this..if u using xampp