[Catalyst] Where to put FormValidator profiles?
Sebastian Riedel
sri at oook.de
Fri Aug 12 06:37:22 CEST 2005
Am 11.08.2005 um 21:57 schrieb Perrin Harkins:
> On Thu, 2005-08-11 at 11:32 -0700, Bill Moseley wrote:
>
>>> I keep, or generate (as necessary) my profiles in the Model class of
>>> the main table I'm dealing with. I have a get_profile() method that
>>> either returns a canned profile, or dynamically generates one,
>>> depending on what I need to do. Then in my Controller I just say
>>> my $profile = MyApp::M::Library->get_profile or whatever.
>>>
>
> I do it this way too.
>
>
>> On the other hand, I'm not sure how well that works when a form is
>> submitted that will end up updating many different tables.
>>
>
> I just grab the profiles from multiple models and put them
> together. It
> requires some coordination to keep the form field names unique though.
I'm looking forward to things like DBIx::Class::Field which should
make this much more elegant. :)
--
sebastian
More information about the Catalyst
mailing list