On 31 mayo, 15:54, Preloader <[EMAIL PROTECTED]> wrote:
> Helly bakers,
>
> I hope this is not a strange/stupid question, but (i think) i didn't
> find the answer in the cake manual ("conventions").
>
> I have a controller for link categories.
>
> Classname: LinkCategoriesController
> Filename: link_categories_controller.php
>
> But what's the controller name? linkCategories, LinkCategories or
> link_categories?
>
> All the three work:
>
> 1)http://mydomain.com/linkCategories/view/1
> 2)http://mydomain.com/LinkCategories/view/1
> 3)http://mydomain.com/link_categories/view/1
>
> But what is correct?

cake expects you to use lowercase and underscored urls, so you could
say that 3 is correct in that it's consistent.

I prefer 2, but I think I'm in a minority :D. Don't know what SEO
purist would have to say though (although for example it doesn't seem
to affect one way or the other how you write your urls to Google).

Cheers,

AD


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