Hi,
I'm trying to pass some arguments into an element from a view.
Basically, I'm rendering comments in a view and want to pass the userid
of the comment to the element/component so that for every comment the
userinformation and avatar is shown.
Currently im trying to pass in the userid in the renderElement call.
But I can't seem to get it back out in the startup method of the
component.

My code is as follows

in the view I call:
 echo $this->renderElement('user_box', $user_id, $params);

and in the userbox I've tried so many different ways to get hold of
that $user_id parameter.
If someone could tell me how to get it, my problems would be solved.
Cheers


--~--~---------~--~----~------------~-------~--~----~
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