Hello Romain, first i suppose you forgot to translate the last label
("auteur_name" to "client_name"), if not, then obviously there's the
trouble.
Now, for the forms, you have to create the widget in the
your_modelForm.class.php with something like
"$this->wigetSchema->setWidget('client_name', new sfWidgetInput())" in your
case, also remember to add a validator with the analogous function
"setValidator", there's a lot of detailed info on how to do it, hope it
helps. See you.
P.S. As you could see, the first argument of the setWidget function is the
name that you will use in "form: display:"
2009/9/23 Romain de Wolff <[email protected]>
>
> Hello all,
>
> I have a custom field in my config/list, which works and return the
> name of a customer. The field name is "client_name" and the value is
> taken from the method getClientName() which is in the model.
>
> Until here, everything is fine.
>
> Now, when I triy to use the same field "client_name" in the "form:
> display:" section underneath, I get a :
>
> 500 | Internal Server Error | InvalidArgumentException
> Widget "auteur_name" does not exist.
>
> Can anyone explain this to me?
>
> Thanks in advance,
>
> Romain
>
> >
>
--
Have a nice day.
Abraham Montilla.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---