No one else was able to help on this, but I managed to figure out how to do this. Here's my solution in case anyone else has the same question.
First, within whichever controller I wanted to access my plugin, I simply added "PluginName.ModelName" to my $uses array. Then, within my code, I could call $this->ModelName->method(); Pretty simple. :) On May 27, 12:26 pm, Matt Huggins <[EMAIL PROTECTED]> wrote: > 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 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 -~----------~----~----~----~------~----~------~--~---