tags:

views:

1285

answers:

2

Hi. I have just successfully installed CakePHP and I see that I can edit the home.ctp view but is there a default controller for the index page?

To change the content of this page, create: APP/views/pages/home.ctp.
To change its layout, create: APP/views/layouts/default.ctp.
You can also add some CSS styles for your pages at: APP/webroot/css.
+4  A: 

Yes, the default controller is PagesController, located in:

cake/libs/controller/pages_controller.php
jimyi
+4  A: 

If you want to make modifications to this controller it is recommended that you copy the default cake/libs/controller/pages_controller.php to app/controller/pages_controller.php . The reason is because you should not modify anything inside the "cake" folder where any file can be overwriten when updating your application with the latest cakephp version.

Héctor García