You need a user authentication mechanism to logon into the admin part. reading this article might help:
http://www.jamesfairhurst.co.uk/posts/view/creating_an_admin_section_with_cakephp On Sun, Feb 22, 2009 at 5:07 AM, Dhana <[email protected]> wrote: > > Hi, > > I have uncommented this line in my core.php > > Configure::write('Routing.admin', 'admin'); > > and I have a controller called Formats. > > This controller has an action called admin_index, but when I try to > access this page, I get this error = > Private Method in FormatsController. > > Is there any other thing I have to do to get this working. Tried > adding this (got this from prefix routing page in the cookbook site), > but am still getting the same issue. > > Router::connect('/admin', array('controller' => 'formats', 'action' => > 'index', 'admin' => true)); > > Does anyone have any idea what I am doing wrong. > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
