I'm building an app that's really one big expanding form (as you answer questions, more appear), buttons to add chunks to it etc, and I'm not clear how to make it fit neatly with a Zend MVC (with layout) structure, or what level of granularity to use in the MVC structure. For example, I have a repeatable section that can be added dynamically to the form multiple times, and that in turn needs to make ajax calls to determine the contents of various pop-up menus as you select them.

Should I implement these different form sections/elements as separate controller actions? If so, I can see this single form using 20-30 actions. Is that 'normal'? When a visitor returns to the form, I can see that I'll need even more actions to rebuild it. Any suggestions how best to approach this?

On reading the docs on partials, it doesn't say where these should be put in a convention-based app (I know CakePHP defaults to views/ elements for its equivalent).

Thanks,

Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
UK resellers of [EMAIL PROTECTED] CRM solutions
[EMAIL PROTECTED] | http://www.synchromedia.co.uk/


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to