Jump to:

3429 Posts in 1057 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » A little bit of help understanding the templates / code php pages?

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

Page: 1
Go to End
Author Topic: 877 Views
  • LinseyM
    Avatar
    Community Member
    99 Posts

    A little bit of help understanding the templates / code php pages? Link to this post

    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):

    <?php
    /**
    * 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

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: A little bit of help understanding the templates / code php pages? Link to this post

    Hi Linsey,

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

    877 Views
Page: 1
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.