Re: form->input: how to show an undelaying field instead of the id?

2010-01-10 Thread lucb
Hi, This did the trick. Thanks! Luc On 10 jan, 22:08, euromark wrote: > usually that happens automatically > if your username is just "name" > > if it is "username" > you need to set $this->displayField = "username"; in the model > > this will do the trick if you get your users by $this->User->f

Re: form->input: how to show an undelaying field instead of the id?

2010-01-10 Thread euromark
usually that happens automatically if your username is just "name" if it is "username" you need to set $this->displayField = "username"; in the model this will do the trick if you get your users by $this->User->find ('list') On 10 Jan., 18:16, lucb wrote: > Hi, > > I have a simple question, bu

form->input: how to show an undelaying field instead of the id?

2010-01-10 Thread lucb
Hi, I have a simple question, but I can't find the answer in the group or website. Using $form->input('user_id') in a view I get a dropdown list with the id's of the users. How can I change that to show a list of the username field in the table users? Best regards, Luc Check out the new CakePHP

Re: $form->input() how to

2009-08-17 Thread brian
Does your mother know you use that name? On Mon, Aug 17, 2009 at 10:42 AM, hymen breaker wrote: > > ok..so its my first time here..past few days ive been reading and > coding with cakephp for my school_enrollment system project..now im > stuck with this simple problem that i cant solve.4 hours of

$form->input() how to

2009-08-17 Thread hymen breaker
ok..so its my first time here..past few days ive been reading and coding with cakephp for my school_enrollment system project..now im stuck with this simple problem that i cant solve.4 hours of reading and rereading about some cakephp articles but still no luck.. so i think, you guys can be a real