There's other ways to do this, depending on whether you'd rather keep
all your admin functionality in one place or to separate it out into
the other controllers.

If you want to separate it out, you can enable admin routes - search
for more information on that if you want to go that way.

To keep it together...

Don't create the admin subdirectory. Instead, create an
AdminController, with an action "dashboard".

The correct Route for that would be:
$Route->connect('/admin/', array('controller' => 'admin',
'action'=>'dashboard'));

This might not be 100% correct, and as I haven't implemented the admin
section of my own application yet, I can't confirm it for you.

But it should get you to the dashboard at least, and from there you can
link to the other files.

In fact you shouldn't technically even need to modify the Routes to get
to it if you do it this way, you could just make your 'dashboard' in
AdminController/index.

Hope this helps...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to