symfony
symfony forum
Home » support » General discussion » meaningful lookup table drop-down
meaningful lookup table drop-down [message #20758] Thu, 01 February 2007 16:25 Go to next message
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
Hi,

I've watched the admin generator screencast several times but still wasn't able to figure out the trick:

- when it is intially generated, the html drop-down list of lookup table, eg author, was 1,
- right after custimization start, the html drop-down list starts to be meaningful, eg, showing actual author names instead of numeric 1.

the trick was not (clearly) explained in the vidoe, I'm just wondering what exactly the trick that enable it.

thanks a lot


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Re: meaningful lookup table drop-down [message #20807 is a reply to message #20758 ] Fri, 02 February 2007 11:04 Go to previous message
thebiz  is currently offline thebiz
Messages: 41
Registered: March 2006
Location: milano
Member
Hi, you have to deal with __toString method of your model classes.
Take a lokk at http://www.symfony-project.com/book/trunk/08-Inside-the-Mode l-Layer

bye


Alessandro
http://www.forge4.com
alessandro [at] forge4 [dot] com
Previous Topic:link_to() and more than one variable in query_string
Next Topic:fckeditor Image-Dir Path / Settings?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software