Did you give it the "private" keyword? What does the code look like?
On Wed, Sep 30, 2009 at 6:50 AM, swati <swatitom...@gmail.com> wrote: > > Hi, > I am getting the following error: > > Private Method in NominationsController > > Error: NominationsController::admin_add() cannot be accessed directly. > > Notice: If you want to customize this error message, create content/ > views/errors/private_action.ctp > > Can you tell me how can i use this "admin_add()" function? > > > --~--~---------~--~----~------------~-------~--~----~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---