or
Router::connect('/admin', array('controller' => 'dashboard', 'action'
=> 'index', 'admin' => true));

On Mar 9, 6:15 am, rtconner <[EMAIL PROTECTED]> wrote:
> Router::connect('/admin', array('controller' => 'dashboard',
> 'action'=> 'index', 'prefix'=>'admin'));
>
> On Mar 8, 5:53 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
>
> > I have turned on admin routing and I have put the following in my
> > routes.php file:
>
> > Router::connect('/admin', array('controller' => 'dashboard', 'action'
> > => 'admin_index'));
>
> > The problem is that I get the following error:
>
> > Error: DashboardController::admin_index() cannot be accessed directly.
>
> > How do I fix this? Thanks for any help you can provide me with.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to