in controller
$this->set('Phones, $Phones);
in view
<?php
foreach($Phones as $Phone){
?>
<input type="text" value="<?=$Phone?>"/>
...
<?php
}
?>
2008/1/16, bob <[EMAIL PROTECTED]>:
>
> I have a model PhoneNumbers. In my controller, I have this code:
>
> $Phones = $this->PhoneNumber->findAllByUserId($username);
>
> In my view, I would like each phone number to be displayed in a
> textbox (one phone number per textbox).
>
> How would I do this if I used $this->data['phones'] = $Phones
>
> Thanks
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---