I'm new in CakePhp but experienced in CodeIgniter. I created a controller in "WelcomeController.php" in controller directory and run the page. I got two errors 1. Error: The view for WelcomeController::index() was not found. 2. Error: Confirm you have created the file: C:\xampp\htdocs\myc\app\View\Welcome\index.ctp.
My question
Why I am getting this error even though I have supplied index() function?
In codeigniter we may not create a directory for a view. I don't want to create a directory "Welcome" in view. I there any provision provided?
/pages/<page_name>. You don't need a specific controller, or controller action, to action to do that. Unless you disable it, CakePHP will render the view corresponding to the controller-action by default. - AD7six