i didn't know that!

that rocks! for the moment i've been passing certain information to my
views / layouts for the purpose of an element that is repeated on
literally every page.

cheers Jon

On 11/08/06, Jon Bennett <[EMAIL PROTECTED]> wrote:
>
> > Then within your layout (or your view):
> >
> > if (isset($some_variable) echo $this->renderElement('some_element',
> > $some_variable);
>
> you could also use it in conjunction with requestAction to grab data
> from a controller outside the current scope, like so:
>
> $this->renderElement('some_element',
> array('data'=>$this->requestionAction ('/news/list_recent_news')); ?>
>
> or, you could place the request action into the element intself, so it
> becomes entirely self contained
>
> hth
>
> jon
>
> --
>
>
> jon bennett
> t: +44 (0) 1225 341 039 w: http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to