You could make a separate element for each question.
Each element would be rendered depending on where you are in the
steps.

You could do it with ajax, as well as what martin suggested and even
the way you had it planned.

In short, cakephp can certainly do what you need... the implementation
is up to you really.
"The best" way really depends on the specifics of your situation.

On Nov 7, 8:25 am, pgraju <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> To start off here is my idea:
>
> I want to build a survey application, users log in and answer (for
> example) 10 questions all on separate pages, if a user enters below
> their average an email is sent out. The 10 questions have all
> different responses i.e. Drop downs, 1-10 or 1-5 scales, Yes/No
> answers etc.
>
> I have been able to build my database model and have got the admin
> area scaffolding fine however I'm stuck on how I can now build this
> model into my views for the user to enter data.
>
> Would I set up my application to follow URLs i.e.:
>
> /questions/view/1/ - Question 1 - Yes/No question
> /questions/view/2/ - Question 2 - 1 - 5 radio button question
> etc.
>
> The question controllers works out what the type of response the
> question has and renders using elements appropriately... I think?
>
> This is the only way I can think of building this app's views and just
> wanted to see what other opinions/criticisms are on my method? Or if
> you have a better idea I would like to hear about it!
>
> Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to