Controller:
$this->set('region_list', $this->Region->generateList());

View:
<?php echo $html->selectTag('Custome/region',$region_list) ?>

By default the above code looks for id and name in the database table.
To change this set var $dsiplayField = 'region'; in your Region model.

API:
http://api.cakephp.org/class_model.html#273890c78b6e0990e987d8d5b50cfb0b


--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to