retrieve attribute from table in sfWidgetFormInputText(),

Discussion relating to version 1.3.x and 1.4.x

retrieve attribute from table in sfWidgetFormInputText(),

Postby zayker » Sat Dec 19, 2009 11:49 pm

Hi
I'm new in symfony and I've created a form and I want to retrieve a value from a table in sfWidgetFormInputText()

BaseBienForm.class.php
'code_appt' => new sfWidgetFormInputText(),

How can I do this please?

I'm in SF 1.3.1
Last edited by zayker on Sun Dec 20, 2009 2:17 am, edited 1 time in total.
zayker
Junior Member
 
Posts: 7
Joined: Sat Dec 19, 2009 10:54 pm

Re: retrieve attribute from table in sfWidgetFormInputText(),

Postby ScherlOMatic » Sun Dec 20, 2009 3:38 am

Hi!

I imagine that you want to get the values in your action class.
This should work: $this->form['code_appt']->getValue();

If you are developing with an IDE, codecompletion will help as well.

Maybe reading the symfony documentation would help a lot ;)~ ;-)~ :wink:!!!
ScherlOMatic
Junior Member
 
Posts: 3
Joined: Sat Dec 19, 2009 3:03 am

Re: retrieve attribute from table in sfWidgetFormInputText(),

Postby zayker » Sun Dec 20, 2009 12:02 pm

Hi ScherlOMatic
Yhanks for your answer, I'll try it, you know, I'm not an english man, so Its difficult for me to learn symfony in english
Best regrads.
zayker
Junior Member
 
Posts: 7
Joined: Sat Dec 19, 2009 10:54 pm


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 5 guests