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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

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

A little bit of help understanding the templates / code php pages?

Go to End

2 Posts   1249 Views


Community Member, 99 Posts

28 June 2009 at 11:06pm

Hi there,

Been working with SS for a couple of days now and I'm getting on fine, but despite reading the tutorial I don't quite understand whats *happening* on the template code pages (where you create the page class etc):

* Defines the Page(NoFlash) page type

class PageNoFlash extends Page {
static $db = array(
static $has_one = array(


class PageNoFlash_Controller extends Page_Controller {


Don't get me wrong, I've created a few of these pages and added int he basics such as an icon etc, but I don't like plodding along using it without fully understanding what the existing code is doing and what is actually happening... can anyone explain it in dummy terms please?!?! Thanks! L


Community Member, 279 Posts

13 July 2009 at 7:33am

Edited: 13/07/2009 7:34am

Hi Linsey,

this is a bit hard to explain, you question is a bit unspecific. What do you already know about OOP and ORM?