Hi all,
I'm running through the SS tutorial at
http://doc.silverstripe.org/doku.php?id=tutorial:1-building-a-basic-site
Trying to create a different page type that will allow me to have different versions of a template for specific pages.
Now I simply can not add to the page type drop down list under behaviour tab following the instructions from the tutorial.
Heres what I have done. (basically what the tutorials says to do but I can't get it to work).
created a file HomePage.php (containing)
<?php
/**
* Defines the HomePage page type
*/
class HomePage extends Page {
static $db = array(
);
static $has_one = array(
);
}
class HomePage_Controller extends Page_Controller {
}
?>
and have it in the mysite/code directory
I ?flush1 the site, and have cleaned out the cache but still when I enter the admin there is no Homepage or any other new options to be seen fromt he Behaviour, page type drop down box.
Not sure what to do now.
Any help would be great