I’ve gone through the blog tutorials and read most of the excellent Yii1.1 and PHP5 by Jeffrey Winesett and am embarking on my first website built with Yii.
It’s a simple client site with a number of lead gen forms. I’ve built it in Yii primarily because of the lead gen forms and to learn more for my first real app with Yii.
The basic structure so far is a few static pages and 4 ways to generate a ‘lead’. Each method of generating a lead will require slightly different form feilds.
Mail a Printed catalog request (a form on one page)
Download a PDF catalog (a widget on most pages)
Quote Request (a form on one page)
Contact Form (a form on one page)
My question is:
Can I create one Lead model and display different forms based on a variable passed through to the lead/create form? Then use modrewrite rules for different page names
Or should I create different models for each and combine them somehow in one admin?
Thanks for your help!