On Fri, Aug 21, 2009 at 6:44 AM, Sourabh<[email protected]> wrote:
>
> Hello Friends,
>
> I am trying to bake a MVC using cake bake.
>
> I have a form (add view) which looks like this when I bake it
>
> name : [            ]
> address : [            ]
> country : [            ]
>
> for all the fileds it gives me "input box".Now the country fields need
> to be "dropdown box"  populated form DB table "countries" which has
> country_name,id.
>
> is there any way to achive thing using bake or we need to manually
> code it ?

Yeah.  Change the code and add the 'type'=>'select'
attrib to the $form->input.

[1] http://api.cakephp.org/class/form-helper#method-FormHelperinput

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to