Hi there,

I'm new to CakePHP, and falling in love it with. A question on how this all 
works. 

I have setup a route for admin, so domain/admin/news, and 
domain/admin/users work.

I have added authentication using the CakePHP tutorial, but it's added to a 
single controller, my users. I want it applied to all items under admin. Is 
it possible to set this up, so whatever in admin requires auth, and goes to 
a shared login page?

And that leads me to my other question about the routes and pages. Is it 
possible for me to

domain.com/news - my news list, redirects to index.ctp
domain.com/admin/news - the admin area for news
domain.com/admin - can this redirect to a page, like pages/admin.ctp?
domain.com/anypage - i'm seeing I can add pages but it has to be in 
domain.com/pages/pagename, can I keep them at the root?

I hope this all makes sense. Thanks!

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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