ok I try give you more information. My client is a physiotherapy studio. They give services to their customers like:
machinery rental; production of custom plantars; ecc For the first service the form could have these information: kind of machine, rental period, delivery method; For the second the form could have other information like: feet size, n. of pieces, ecc Anyway I don't know what fields they could need...so I would create an interface in the backend where they can select a typ of field, say date, text, dropdown list, and the relative name and store this info as text in a database field... What do you think? On Apr 30, 2:09 am, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > Hi alessandro, > > it's rarely simple for other people not working in your project who > doesn't even know what the website is for. > > For example: What is this "service" you're talking about? What are the > fields in it? > > On Thu, Apr 30, 2009 at 11:35 AM, alessandro > > > > <alessandro.dimag...@gmail.com> wrote: > > > Thanks Sid. > > > There's not much to know about this project... is a simple website > > with few particular features in the backend side... > > > I asked your opinion because I always try to implement the cleanest > > way instead of doing something that just simply does the work. > > > I have another doubt now... as the interface for inserting new page is > > the same for every section...I have to find a way to display the > > "custom form fields" in the backend ONLY if the selected page goes > > into the "services" section. > > > Any idea? > > > On Apr 30, 1:25 am, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > >> Hi Alessandro, > > >> That solution that you proposed sounds good to me. I've implemented > >> something like that too. > > >> At the end of the day, you're the one who knows everything about your > >> project and what your client want to achieve, etc, etc. > > >> Here in this mailing list we help with Symfony issue and give advise > >> as much as we can. > > >> I personally can't say what is the best solution for you because I > >> don't know much about your project. > > >> On Thu, Apr 30, 2009 at 11:19 AM, alessandro > > >> <alessandro.dimag...@gmail.com> wrote: > > >> > ok guys, are you here to help people or what? > > >> > Anyway I'm not asking you how the code, I'm just trying to understand > >> > how to put fields information in the database, if it is the best way > >> > or if there is a better solution. > > >> > On Apr 30, 1:14 am, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > >> >> >> > Should I let my customer insert something like field type, field > >> >> >> > name, > >> >> >> > ecc, store it into database and then create the form int the view > >> >> >> > with > >> >> >> > a component? > > >> >> I think this is a good solution. And it is not that hard to implement > >> >> with Symfony 1.0. > > >> >> On Thu, Apr 30, 2009 at 11:12 AM, alessandro > > >> >> <alessandro.dimag...@gmail.com> wrote: > > >> >> > what would you do in my case? > > >> >> > On Apr 30, 1:02 am, Paolo Mainardi <paolomaina...@gmail.com> wrote: > >> >> >> On Thu, Apr 30, 2009 at 12:59 AM, alessandro > >> >> >> <alessandro.dimag...@gmail.com>wrote: > > >> >> >> > Precisely my doubt is: how can I attach a custom form to every new > >> >> >> > service? > > >> >> >> > Should I let my customer insert something like field type, field > >> >> >> > name, > >> >> >> > ecc, store it into database and then create the form int the view > >> >> >> > with > >> >> >> > a component? > > >> >> >> Yes, it's more or less what you can do with the CRUD generators, see > >> >> >> here:http://www.symfony-project.org/book/1_0/14-Generators > > >> >> >> > thanks > > >> >> >> > On Apr 30, 12:50 am, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > >> >> >> > > Are you asking how to create custom form class? > > >> >> >> > > What Symfony version? > > >> >> >> > > I think these are all in the documentation. > > >> >> >> > > On Thu, Apr 30, 2009 at 10:26 AM, alessandro > > >> >> >> > > <alessandro.dimag...@gmail.com> wrote: > > >> >> >> > > > Hi all, > > >> >> >> > > > I'm building a website where there is a "Services" section. > > >> >> >> > > > My client asked me the possibility to have a form for > >> >> >> > > > requesting > >> >> >> > > > services customized for each different service. > > >> >> >> > > > How can I do that? > > >> >> >> > > > Thanks > > >> >> >> > > -- > >> >> >> > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz > > >> >> >> -- > >> >> >> Paolo Mainardi > > >> >> >> CTO Twinbit > >> >> >> Blog:http://www.paolomainardi.com > > >> >> -- > >> >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz > > >> -- > >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz > > -- > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---