ahh
Users model:
$hasmany ...
'State' =>
                        array('className'    => 'State',
                                  'conditions'   => '',
                                  'order'        => '',
                                  'dependent'    =>  true,
                                  'foreignKey'   => ''),

States Controller:
class StatesController extends AppController
{
        var $name = 'States';
        var $belongsTo = 'User';

}

State model:
class State extends AppModel
{
        var $name = 'State';
        var $hasMany = 'User';

}

view:
$this->set('states',  $this->User->State->generateList());

function add_talent() {
...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to