Hi,

I'm rewrite my old applications using cakephp, but find a problem at
the very beginning.

My old application has 2 parts. One for normal visitor and one for
administation staff.

http://my_system/ -----> for normal visitor
http://my_system/admin -----> for admin staff.

It is quite straightforward in my old layout. Just create a dir named
"admin" under web server root.
But it seems difficult to implement such simple task under cakephp
framework.
I created a subdirectory under "controllers" dir and add following line
to routes.php

$Route->connect('/admin/*', array('controller' => 'admin/dashboard',
'action' => 'display'));

Of course, it doesn't work. Cakephp is confused about the directory and
class name.

I tried the RoR application "Typo 4". It has similar structure. It has
a subdirectory "admin" under controllers directory and it works fine
there.

I don't know much about ruby on rails so I cannot figure out how to do
it.

How can i setup the correct routes in cakephp to add a simple backend
admin directory?

Thank you,
Ji Tao


--~--~---------~--~----~------------~-------~--~----~
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