Thanks Jeremy, you've saved my time! I didn't know it was that simple. On May 13, 4:05 pm, Jeremy Burns | Class Outfit <[email protected]> wrote: > In you Region model: > > var $order = 'name'; > > Jeremy Burns > Class Outfit > > [email protected]http://www.classoutfit.com > > On 13 May 2011, at 15:03, mthabisi mlunjwa wrote: > > > > > > > > > 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 > > Tutorialshttp://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php
-- 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
