+ Reply to Thread
Results 1 to 2 of 2

Thread: I found a very nice site framework/CMS

  1. #1
    masshuu's Avatar
    masshuu is offline Head of the Geese masshuu has a spectacular aura about
    Join Date
    Oct 2007
    Location
    Las Colinas, Tx
    Posts
    2,262

    I found a very nice site framework/CMS

    I can't say that i look around at frameworks often, but i found a very nice one that has a CMS built on top of it, which allows for very easy and quick development of a site.
    I actually chose it because it was the first in a list that was free and not licensed under the gpl.
    http://silverstripe.org/
    Unlike some other frameworks i have used in the past(like 2 or 3), this one is very easy to use. It works on a plain old php install, and is fairly fast, so it should work fine on the free hosting(don't hold me to it)

    The CMS that comes with it is fairly plain, but fairly powerful.

    (bit of a tutorial to show how simple it is to work with)

    Lets say we create our own pagetype, (which we can then assign to a page)
    we save this in mysite/code/MyCustomPage.php

    PHP Code:
    <?php
    /**
     * Defines a page type
     */

    class MyCustomPage extends Page {
       static 
    $db = array(
       );
       static 
    $has_one = array(
       );


    }

    class 
    MyCustomPage_Controller extends Page_Controller {


    }
    Now i'm still not to sure of the structure, as i'm still a noob, but i believe the first class handles setting up stuff like the database and how the page functions internally.
    The second class is where the magic is. This is where all the goodies go. Functions in here can be directly called by the template, or by the url(mysite.com/Page/SomePageFunction)

    So if we add this:
    PHP Code:
    function SomeStats() {
        return 
    "Stats: 118 corn-dogs eaten.";

    We can then use SomeStats in a template, like this:
    Code:
    Last weeks info: <i>$SomeStats</i>
    Now there is a little bit of a learning curve, and you do need to know php, but i love this framework already.

    As noted earlier, i'm still new to this framework myself so i still haven't dug into its power. Theres a mass of features i haven't touched.
    Here is a testing ground i'm using for it: http://preview.stormraidergames.com/
    Last edited by masshuu; 07-29-2010 at 03:14 AM.
    Just leading the flock.
    Livewire
    Masshuu ------ carl6969
    descalzo ------------------- Smith6612
    Bryon--------------------------------- Corey
    If you find any post helpful or useful, duck
    \ / This for that post and rep it up.

  2. #2
    farscapeone's Avatar
    farscapeone is offline Community Advocate farscapeone is on a distinguished road
    Join Date
    Dec 2008
    Location
    Србија (Serbia)
    Posts
    1,166

    Re: I found a very nice site framework/CMS

    When I need to do something fast (mostly static sites) I use concrete5.

+ Reply to Thread

Similar Threads

  1. Nice Site
    By bitsen in forum Introductions
    Replies: 6
    Last Post: 08-30-2009, 06:59 AM
  2. Nice site for free logo design!
    By denaon in forum Graphics & Webdesign
    Replies: 9
    Last Post: 05-17-2008, 06:24 PM
  3. Nice site
    By camdizzle in forum Introductions
    Replies: 0
    Last Post: 08-18-2006, 03:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers