On 07/03/2008, Alex Povolotsky <[EMAIL PROTECTED]> wrote:
> Hello!
>
>  HTML::FormFu documentation is (again) quite unclear on usage of inflators.
>
>  Using
>
>  ---
>  elements:
>   - type: File
>     name: photo
>     attributes:
>       accept: image/jpg
>     inflators:
>       - type: Imager
>
>  how do I access Imager object from $form?

What have you tried?

Inflators just change the value, so either
    $form->param_value($name)
or
    $form->params->{$name}
will work.

> FORM LOGIC AND VALIDATION
>
> Inflators are intended to allow a value to be turned into an appropriate
> object. The resulting object will be passed to subsequent Validators
> and Transformers, and will also be returned by "params" and "param".

(I see I need to change the docs there to use param_value rather than param)

Carl

_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to