You have the data in the array, you just haven't found the right path. Working 
your way into an array is easy if you do lots of debugging and take it a step 
at a time.

So if your variable is coming into your method as $plan, are you doing a 
foreach loop on it? Something like:

foreach ($plan as $row):
        ...
endforeach;

If so, try this:

$row['PlanDetail']['Company']['company_logo_url'];

If that isn't right, debug out $row and look at it to work out your path.

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

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

> Hi Jeremy,
> 
> I am using a foreach() to product records results, but I tried:
> 
> $plan[0]['PlanDetail']['Company']['company_logo_url'];
> 
> And as expected (and as you mentioned), (because its a loop) it did not 
> produce anything.
> 
> My earlier post was an error when I had the ['Plan']... as part of the echoed 
> array.
> 
> I also tried:
> 
> $plan[]['PlanDetail']['Company']['company_logo_url']; (removed the index 
> number). no luck.
> 
> It looks like I need to strip the numerical array elements from the 
> containable output, and I briefly recall an option that allowed me to do 
> this. But I can't find it!!
> 
> If you have any other ideas, please feel free to mention them : ) I am going 
> to keep searching...
> 
> Headache : (
> 
> -- 
> 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
> [email protected] 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to