Q: How can i remove /[controllername]/action from my URL.? I have my
/users/login/ now but i dont like it. Just /login/ should do the
trick!

A: Create a route to that action. Routes are great and you can find
them in ./config/routes.php. Bake already put some lines there. Just
add another one that goes like this:

Router::connect('/login/', array('controller' => 'users', 'action' => 'login'));

------------------

Q: I just baked my first controller and the views for it but when i go
to my page i can't find a link to it. Whats wrong? Did i made a
mistake?

A: No, you probably didn't. Cake just doesn't link to it automaticly.
You have to call the controller name like so:
example.com/app/[controllername]/
Please note that the controllername has to be in plural form: users/,
ratings/, notes/, posts/ etc.

-- 
Regards, Kjell
www.m3nt0r.de

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

Reply via email to