Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

1154 Posts in 324 Topics by 274 members

Data Model Questions

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

Page: 1
Go to End
Author Topic: A little bit of help understanding the templates / code php pages? 354 Views
  • LinseyM
    avatar
    Community Member
    32 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
    224 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?

    354 Views
Page: 1
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: GreenWork

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

Comments on this website? Please give feedback.