HI all,
I am following along the tutorial over at:
http://doc.silverstripe.org/doku.php?id=tutorial:1-building-a-basic-site#templates
And it shows you to create an alternate template for a site you must:
Create a new file HomePage.php in mysite/code. Copy the following code into it:
<?php
/**
* Defines the HomePage page type
*/
class HomePage extends Page {
static $db = array(
);
static $has_one = array(
);
}
class HomePage_Controller extends Page_Controller {
}
?>
And customise that to suit. It then says
After building the database, we can change the page type of the homepage in the CMS, under the “Behaviour†tab. Change it to HomePage, and click “Save Draft†and “Publishâ€.
Now I have flushed, clearned out my cache, refreshed my browser but still I simply can not get HomePage.php to appear from the page type list.
Any help would be great