What I usually do is create a dashboard controller with no associated
model, then set up a route in config/routes.php , to redirect.
ie.
$Route->connect('/admin', array('controller' => 'dashboard', 'action'
=> 'index'));
btw, if you are using any sort of user auth , i would suggest doing
the following
$Route->connect('/admin', array('controller' => 'users', 'action' =>
'login'));
then redirecting to /dashboard/index after the user credentials have
been verified.
On Mar 30, 12:04 pm, "carbonize42" <[EMAIL PROTECTED]> wrote:
> I am currently working on a site that needs a few different CMS tools
> built in for the client. I decided to try the admin routes, which
> works great for each one of the modules, but now I have run into one
> problem. If I use the 'admin' for admin routes, then I can't figure
> out how to set up just the '/admin' link for the client to access an
> admin panel.
>
> My only thought right off the bat was to make the admin routes 'a'
> instead of 'admin' and then create an admin controller.
>
> Does anybody have CMS tips on making these things work, while keeping
> the admin controller actions with its actual controller?
>
> Thanks!
>
> Randy
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---