in your controller:
$categories = $this->User->Category->find('list');
$this->set(compact('categories));
view:
echo $form->select('User.category_id');
On Tue, Jan 20, 2009 at 1:26 AM, Abhishek <[email protected]> wrote:
>
> Hi,
> Suppose if i have to edit a record say "user" .. which has a foreign
> key category_id .. how do i display the current value in the drop down
> first . and then show rest of the options ..
>
>
> Regards
> Abhishek Jain
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---