I'm building my first ever CakePHP plugin (1.2), and I can't find any help on how to access plugin functions from within a controller that resides within my application. I've found that it can be done using requestAction, but I do not wish to access my plugin's controller actions in this way if it can be avoided.
Here's how I have things set up to make my intentions clearer: - My plugin has a User model, which has functions like register, login, etc. - My plugin has a Users controller, which has functions like _register, _login, etc. These actions are private and cannot be accessed directly from the web by a user, which is perfect. - My application has a separate Members controller. When a member registers via the Members controller, I would like to either call the plugin's _register function within the Users controller *OR* the register function within the User model. Attempting to use requestAction does not work with the Users controller because _register and _login are considered private. If anyone has any insight on how to accomplish what I'm doing, I would greatly appreciate your help. Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
