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.

General Questions /

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

Tutorial 1 :: Doesn't Work


Go to End
Reply


10 Posts   2179 Views

Avatar
UncleCheese

Forum Moderator, 4096 Posts

10 February 2009 at 6:37pm

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

Avatar
Sammy

Community Member, 4 Posts

11 February 2009 at 1:29am

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

Go to Top