On May 9, 2006, at 9:05 AM, Dusty wrote:
In your VlogsController, you should have an add function. It should look something like this: <? class VlogsController extends AppController { function add($id) { //make sure you have the $id parameter - this is where you can use the ID passed in by the URL // so calling /vlogs/add/23 would mean that $id = 23 at this point. } } ?> Basically: /controller/action/var1/var2/var3 calls Controller::action('var1', 'var2', 'var3'); Hope that helps. -- John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- Re: Need help passing "id" between controllers John Anderson