[Catalyst] C::C::FormBuilder question
Marc Logghe
Marc.Logghe at DEVGEN.com
Mon Jan 29 17:02:08 GMT 2007
Hi all,
I am lost.
In my conf I have:
# configuration of FormBuilder
Controller::FormBuilder:
method_name: form
template_type: Mason
stash_name: form
obj_name: fb
form_suffix: fb
attr_name: Form
form_path: __path_to(forms)__
In the mason template:
<% $form->render %>
<%args>
$form => undef
</%args>
The error I get:
Couldn't render component "/moe/mol_3D_conv_form" - error was "Can't
call method "render" on an undefined value ...
I was convinced that C::C::FormBuilder automagically sets
$c->stash->{<stash_name>}, but it seems not to be the case (btw: calling
$c->stash->{form} gives the same error).
Do you have to assign your fb object manually in the controller ? And if
so, what is the purpose of the 'stash_name' conf setting ??
I am afraid I am missing something teriibly.
Regards,
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070129/cab7327b/attachment.htm
More information about the Catalyst
mailing list