Sorry, I meant controller, instead of action in the above post. On 2 apr, 02:29, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > I've made a plugin which is included in every page using > requestAction, but I need to show and hide different parts of the view > depending on the current main action (the action which is visible in > the url). > > I've tried using > > if($this->name == 'my_action'){ > //....} > > else > { > //.... > > } > > But that method always returns the name of the plugin action, not the > main action in which the plugin view is included. > > Is there a good way to do this?
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---