So the value is there in the array. I see you are echoing out 
$plan['Plan']['PlanDetail']['Company']['company_logo_url'];, which doesn't 
exist.

Assuming this variable is called $plan and you are not doing any for/foreach 
loops, to echo that value out you'd start at the top and walk your way down the 
tree until you reach the field you want, so you'd use:

echo $plan[0]['PlanDetail']['Company']['company_logo_url'];

Does that produce anything?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 14 Feb 2011, at 22:34, OldWest wrote:

> Hi Jeremy,
> 
> Company logo url is not echoed when using my containable as it stands: echo 
> $plan['Plan']['PlanDetail']['Company']['company_logo_url']; (with 
> non-containable native relationship find('all') works just fine -- data 
> echoes as expected).
> 
> PlanDetail belongsTo Company w/ foreign key: company_id
> 
> Company hasMany PlanDetail w/ foreign key: company_id
> 
> Here is a sample record debug w/ containable applied:
> Array
> (
>     [0] => Array
>         (
>             [Plan] => Array
>                 (
>                     [id] => 7
>                     [created] => 2011-01-10 14:11:40
>                     [modified] => 2011-02-03 18:35:29
>                     [plan_detail_id] => 32
>                     [monthly_cost] => 25.49
>                     [dental_cost] => 0.00
>                     [age_id] => 2
>                     [applicant_id] => 1
>                     [state_id] => 1
>                 )
> 
>             [PlanDetail] => Array
>                 (
>                     [id] => 32
>                     [effective_date] => 2011-01-10 14:07:00
>                     [expiration_date] => 2011-01-10 14:07:00
>                     [active] => 1
>                     [name] => Classic 1500
>                     [plan_type_id] => 2
>                     [max_benefit] => 0.00
>                     [deductible] => $75/year
>                     [preventive] => 90%
>                     [basic] => 75%
>                     [major] => 50%
>                     [ortho] => 
> N/A
> 
> 
>                     [company_id] => 4
>                     [plan_detail_note_id] => 9
>                     [Company] => Array
>                         (
>                             [id] => 4
>                             [company_logo_url] => nationwide_logo.png
>                         )
> 
>                     [PlanType] => Array
>                         (
>                             [id] => 2
>                             [name] => Indemnity
>                         )
> 
>                 )
> 
>         )
> 
> 
> 
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>  
>  
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to