Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w not showing?


3 Posts   1070 Views


1 July 2010 at 11:14pm Community Member, 254 Posts

Hi all,
very strange behavior happening here. I must be doing something wrong but I can't see what.

I made a home page class just so I could template the home page.
I made Home.php
class Home extends Page {
   static $add_action = 'Home Page';
then (which is now sitting in mysite/templates/ and themes/mytheme/ and also the Layout folders)

But after I save and publish, ?flush=1, ?flush=all I still get the class name "Home" and thats all thats printing.

Any ideas? :P


2 July 2010 at 4:47pm Forum Moderator, 5511 Posts

Do you have a controller for that class?? All page types must have a model and a controller. For example in your case


class Home extends Page {


class Home_Controller extends Page_Controller {



2 July 2010 at 4:56pm Community Member, 254 Posts

True! Thanks willr I forgot about adding the controller, its been too long since I used SS.

I was having the same issue with a tag page before I did a test with the home page. Does the following look complete? should work ya

class TagPage extends Page {

   static $add_action = 'Tag Page';
   public function Tags() {
      return DataObject::get('TagDataObject');

class TagPage_Controler extends Page_Controller {
static $url_handlers = array(
      'tag/$Action/$ID/$Name' => 'order'
   function order($a) {