In addition to what Chris said, you will need to tell cake how to fill
your drop down in your view like this:
# echo $form->input
# (
# 'Product.categoryId',
# array
# (
# 'options' => $categories
# )
# );
On Jul 2, 4:08 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Wed, Jul 2, 2008 at 10:05 AM, kaushik <[EMAIL PROTECTED]> wrote:
>
> > I want to make a drop down of categories from category table in
> > Product page.
> > How to do it? Please help me.
>
> $categories = $this->Product->Category->find('list');
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---