Jump to:

23371 Posts in 18161 Topics by 2865 members

General Questions

SilverStripe Forums » General Questions » Tutorial 1 :: Doesn't Work

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1901 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Tutorial 1 :: Doesn't Work Link to this post

    Please post your code for HomePage.php. This has to be something really simple.

  • Sammy
    Avatar
    Community Member
    4 Posts

    Re: Tutorial 1 :: Doesn't Work Link to this post

    This is SilverStripe/tutorial/code/HomePage.php

    <?php

    class HomePage extends SiteTree {
       static $db = array(
       );
       
       static $defaults = array(
       );

       
    }

    class HomePage_Controller extends ContentController {
       function init() {
          parent::init();
          
          Requirements::themedCSS("layout");
          Requirements::themedCSS("typography");
          Requirements::themedCSS("form");
       }
    }

    ?>

    I hope there is some easy fix. I suspect there is something wrong in the /db/build?flush=1 because I can't find HomePage added in the database.

    /S

    1901 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.