I've just started using CakePHP and so far it looks great. However, after reading the manual and putting together a quick try-out site with scaffolding/bake, a few questions remain..
1. If I go to "http://localhost/users", it works just fine and the index page comes up as expected.. but all links seem to have a top- level directory of "app". eg: http://localhost/app/users/add http://localhost/app/users How can I remove "app" from the URL? Pages work fine without (and with) it, but all links seem to have it by default even though it's unnecessary. 2. I'd like to create a "mobile" version of my website, accessible from mobile/cell phones.. I want the URL to be something like "domain.com/mobile", so it would have pages such as "domain.com/mobile/ users". They would share the same controller and model as the main page but with a different view. How would I do this? 3. I see that layouts have placeholders for content and the title.. but what do I do about menus? In particular, I'd like to be able highlight the current menu item but obviously not put the markup in all views. 4. I noticed "bake" can create admin pages, but how can I make them secure with a password? 5. I'm sure it's simple but how would I make a page such as "domain.com/legal" ? There's no model behind it, it doesn't really need a controller.. and the name is singular. So theres a fair bit there.. and I'll probably have more questions as I go along but I really appreciate anyone's assistance in answering the above. thanks :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
