Add this to the top of your view:

echo debug($todays_recipe);

That will print the array and its key[s] => value[s]. If you're still
not sure, post the output from that line.

On Mon, Jun 9, 2008 at 7:45 PM, Peter54 <[EMAIL PROTECTED]> wrote:
>
> First off I'm not just new to Cake I'm new to programing. I can get my
> head around relatively simple stuff and can generalize once I have a
> concept but even though I know this is either obvious, or been
> answered a thousand times I can't see how it works.
>
> I have a two tables Recipes and Ingredients and a JoinTable
> Ingredients_Recipes that contains the foreign keys plus some other
> data.
>
> In my controller I have the following code:
>        $recipe = $this->Recipe->find(array('ShowDate'=>$today));
>                $this->set('todays_recipe', $recipe);
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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