I'm actually using that technique in a couple elements right now. Elements are rendered by the view, so variables from your view are accessible, including $this->controller. Incidentally, this is why elements can reference helpers, too.
379 the manifesto wrote: > Thanks for that... > > What about if my view is a rendered element that doesn't belong to any > particular controller? > > eg I have a header element that is included in all views accross > several models and controllers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---