On Dec 15, 2007 2:57 AM, Funkdafied <[EMAIL PROTECTED]> wrote:
>
>
> 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.

Make sure you are using URL rewriting.  If you're using Apache, there
are lots of instructions on Google on how to get it to work with
CakePHP.

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

You can use a combination of custom routes and code in your controller
that detects if you're using a mobile browser or not, then telling it
what view you want to use.

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

Not a Cake issue.  Javascript/DHTML issue.

> 4. I noticed "bake" can create admin pages, but how can I make them
> secure with a password?

Well, that's not really a CakePHP issue either.  Use standard HTTP
Authentication *or* spend some time learning how to use the Auth
component in CakePHP 1.2

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

You could use the static 'pages' controller, again with a custom route
to make calls to domain.com/legal go to pages/legal

Others will correct me I'm sure.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

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