My add view looks like this:
<?php
echo $form->create('Practice');
echo $form->input('region_id');
echo $form->input('name');
echo $form->end('save Practise');
?>
region table has the following columns:
->id(primary key)
->region
practice table has the following columns:
->id
->region_id
->name
the region_id dropdown menu displays a menu list of all the regions in
the database. They are automatically sorted using the region
id(primary key) field.
How can I change it so that it sorts by region instead of id?
Please help. Thanks in advance.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php