Here's the db situation: members model has a foreign key(pictureid) to
the pictures model(id).

I can successfully associate two models with each other, therefore I
am able to display the data from the associated model in my index
view:

<?php echo $member['Picture']['0']['picaddr'];?>

Now I want to be able to send the data from the associated model (that
appears in my index view) to the edit view.  In my edit view, I am
able to display the parent model data by :

<?php echo $html->input('Member/fname', array('size' => '40'))?>

but when I try to use this:

<?php echo $html->input('Picture/picaddr', array('size' => '40'))?>

nothing appears in the text field in my edit view.

Any idea what I am doing wrong? 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to