[Catalyst] More than one form per page with C::C::FormBuilder?

Matt S Trout dbix-class at trout.me.uk
Mon Feb 12 12:08:11 GMT 2007


On 12 Feb 2007, at 11:56, Danny Warren wrote:

> Yea, I was thinking of something along those lines.  One idea I was  
> playing with was creating a new base controller that inherits from  
> C::C::FormBuilder, and sets the stashed variables based on the form  
> name (from the *.fb config files).  That is the least-hacky thing I  
> can think of that lets me keep all the niceness without a bunch of  
> extra code in each action.
>
> One bonus to that is that it removes visual ambiguity in the  
> templates as to which form is being rendered.  Will post back if  
> that works decently, but I am still open to ideas if others have  
> solved this one already.

RFC additional syntax; the C::C::FormBuilder author is on this list  
and responsive so you could probably get some feedback and be able to  
work with him to get the functionality you need merged into mainline.

-- 
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +





More information about the Catalyst mailing list