RE: Element question

2009-09-22 Thread Dave Maharaj :: WidePixels.com
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

Re: Element question

2009-09-22 Thread brian
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,

Re: element question newbie

2008-05-18 Thread .
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'))