[Catalyst] How to change FormBulder method post -> get

Richard Jones ra.jones at dpw.clara.co.uk
Sat May 19 14:59:57 GMT 2007


According to the CGI::Formbuilder docs:
method - the type of CGI method to use, either post or get. Defaults to 
get if nothing is specified.

According to the Catalyst::Controller::FormBuilder docs, changing it is 
as easy as:

$self->formbuilder->method('post');

I actually *want* to use the get method, but there is nothing I can do 
to actually get it (pun intended) except to specify the HTML manually in 
the form. So:

1) method: get # in the .fb file
2) method => 'get' # in Controller::FormBuilder config new()
3) $self->formbuilder->method('get') # in the controller method
4) or not specifying method anywhere

are all comprehensively ignored. FormBuilder has decided I'm having post 
and that is that! I really hate FormBuilder :-(

[how's that FormValidator plugin coming along BTW?]
-- 
Richard Jones




More information about the Catalyst mailing list