Right on thanks.
Found it too after doing a little digging in the cookbook.
Thanks again,
Dave
-Original Message-
From: brian [mailto:bally.z...@gmail.com]
Sent: September-22-09 10:44 PM
To: cake-php@googlegroups.com
Subject: Re: Element question
That's because the element r
That's because the element relies on $viewVars. $award is outside the
element's scope because you created it in your view. At least, I
believe that's the case. Do this instead:
echo $this->element('users/block_awards', array('award' => $award));
That should pass your var to the element.
On Tue,
please ignore. i looked in the wrong file
On Sun, May 18, 2008 at 10:37 PM, . <[EMAIL PROTECTED]> wrote:
> in cake 1.2, according to the API, it says
> View::element ( $ *name*, $ *params* = array()
> but when I do this:
>
> echo $this->element('comments/add', array(data1=>'a'))