Skip to content


CakePHP home page controller and view

Hopefully this will save someone time, because the locations are a little off.

Here are the default files for the CakePHP home page controller and view.

Controller:
[cake install location]\cake\libs\controller\pages_controller.php

View:
[cake install location]\app\views\pages\home.ctp

I’m using CakePHP 1.2, so this might be a little different for earlier releases.

Posted in PHP.


2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. web blogger says

    Can you put some light on how to create a page_controller for home page which will be used to display the latest of products from my other models

  2. Chris Roland says

    Hey web blogger,

    I’ll work on an edit to provide more information on this.

    Thanks,
    Chris



Some HTML is OK

or, reply to this post via trackback.