I've got the actAs Image behavior working to upload images and
associate them with records.

I've hit a little snag though when trying to pull up the records
'recursively' when using the containable behavior

1. Merchant hasMany Coupons
2. Coupons have images (img1, img2)

Code

$this->OnsaleMerchant->Behaviors->attach('Containable');
        $onsaleMerchant = $this->OnsaleMerchant->find('first', array(
            'conditions' => "OnsaleMerchant.id = $id",
            'contain' => array(
                    'OnsaleCoupon' => array('OnsaleCouponsCategory',
'conditions' => $final_conditions),
                    'OnsaleMerchantsAddress' => array
('OnsaleMerchantsAddressesCity')
                )
        ));

It shows 'text/jpeg' for img1 and img2, but I can't get it to replace
these values with the array. I've tried several different variations
of my 'contain' parameter and can't get it to pull correctly.

Any insight on how to get it to pull the image information?

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