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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

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

Go to End

2 Posts   1668 Views


Community Member, 5 Posts

12 October 2009 at 11:49pm

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>What is it?</quiz>
........Bla Bla Bla ....

Help me or guide me please.
Thank you.


Community Member, 283 Posts

13 October 2009 at 12:50pm

Well you could query the data into arrays with SQLQuery ( ) then use PHP AMF ( ) 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: