I was recently hacking around trying to avoid using the requestAction() 
method to call in an array.

I have an element which I use in several views.

I wanted to be able to pull in a set('value_to_pass') array to my element, 
so I could untilize an existing actions values.

I could not find a way to make this work within a reasonable amount of time 
(and maybe there is a way!).

But my suggestion is the element should support another parameter for an 
action name so the action can be called and the value can be passed to it 
for use in the element output.

Here is an example of what I propose:

echo $this->element('element_name', *'controller.action_name'*, 
array("birds" => $birds));

Does this make any sense at all? Or should I be looking elsewhere for a 
solution?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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