I tried something just like that yesterday:

$user = $this->requestAction('mshows/edit/5');

It did not work for me, it does not process the id = 5 and send back
the data
even though that works if you type mshows/edit/5 in the address bar.

You have to fetch the data in your controller and send it to the view
with $this->set( variable, value ). How you're gonna get to that data
depends on your associations...

In my case, I solved it with a function called generateList() which
appears in the PDF manual

I've seen some code using requestAction and a keyword  "param:".
If I remember where I saw it I'll write back to you.

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to