I think something like $this->params['controller'] will just give the currently executing controller ("main" or "plugin") and this is not what you want.
I'm unclear on exactly what your goal is, but it seems there are two options: 1. make the "plugin" code generic, have it do its thing, return data or whatever, then process that data appropriately in the main controller action 2. if the "plugin" code has to be able to process conditionally based on where it was called from, I think you'll have to find a way to pass this info into the plugin code, as an extra parameter or something. maybe... in the main1 controller: requestAction("/pluginController/pluginAction/main1/"); and then function pluginAction($fromControllerName) { if ($fromControllerName == 'main1') { ... } elseif ($fromControllerName == 'main2') { ... } hope this helps... On Apr 1, 5:38 pm, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > Sorry, I meant controller, instead of action in the above post. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---