Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » I want to create simple Quiz page, Please guide me.

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

Page: 1
Go to End
Author Topic: 1324 Views
  • Suriya
    Avatar
    Community Member
    5 Posts

    I want to create simple Quiz page, Please guide me. Link to this post

    Example Tables and fields :

    ---Table question_group ---
    1. id (Number PK)
    2. group_name (String)

    --- Table questions ---
    1. id (Number PK)
    2. Question (String)
    3. Choice 1 (String)
    4. Choice 2 (String)
    5. Choice 3 (String)
    6. Choice 4 (String)
    7. Answer (Number 1 digit : 1,2,3,4)
    8. Group_ID (Number relations id table question_group)

    Flow of create Question:
    1. Create Question Group
    2. Create question and select group_id

    I have adobe Flash Quiz application. It can work with XML file and I want to use SilverStrip framework for backend management this module (create,edit,delete ) and return xml to Flash Application.

    Example XML FIle :
    <Quiz>
    <question>
    <quiz>What is it?</quiz>
    <choice_1>Cat</choice_1>
    <choice_2>Cat</choice_1>
    <choice_3>Cat</choice_1>
    <choice_4>Cat</choice_1>
    <answer>2</answer>
    </question>
    <question>
    ........Bla Bla Bla ....
    </question>
    </Quiz>

    Help me or guide me please.
    Thank you.

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: I want to create simple Quiz page, Please guide me. Link to this post

    Well you could query the data into arrays with SQLQuery ( http://doc.silverstripe.org/doku.php?id=sqlquery ) then use PHP AMF ( http://www.amfphp.org/ ) to pipe it into your flash app with very little manpiulation.

    Alternatively you could use a simple XML template to shift it out from easy-to-retrieve DataObjects: http://doc.silverstripe.org/doku.php?id=templates&s=template%20xml#calling_templates_from_php_code

    1324 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.