You are right, view vars will be passed along to elements, but he was asking about vars directly passed from the view to the element. Otherwise you are right, and there's no more he has to do than simply use the view variable.
-MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de dericknwq Enviado el: Domingo, 22 de Abril de 2007 01:27 a.m. Para: Cake PHP Asunto: Re: Passing arguments to a nested element If I'm not wrong, your viewVars are always passed to the element. So in fact once you've set the vars using $this->set() on your controller, all the elements could receive those variables as well even if you don't specifically provide the params when calling renderElement. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---