One thing I keep meaning to do is implement routes to make URLs more
sentence like, (inc singulars as the above), and strip all numbers.
I.e for a cakey book store:

cakeybooks.com/all/books       // books index
   /all/books/by:jane_austen
   /a/book/named:war_and_peace      //  a =>view
   /purchase/book/named:war_and_peace
   /edit/book/named:war_and_peace

Not really sure how I'd do it though! Perhaps this thread will inspire
me to improve my routing skills :)


On Apr 15, 10:30 pm, Stephen Orr <[EMAIL PROTECTED]> wrote:
> Of course, there's no reason you couldn't achieve those preferred URLs
> by using custom routes.
>
> Stephen
>
> On Apr 15, 4:00 pm, "R. Rajesh Jeba Anbiah"
>
> <[EMAIL PROTECTED]> wrote:
> > On Apr 10, 1:18 am, majna <[EMAIL PROTECTED]> wrote:
> >    <snip>> My suggestion is controller/action/slug solution. Sometimes 
> > controller/
> > > slug if possible.
>
> >    <snip>
>
> >    Thanks for your comments. The reason for this post is that:
> > 1. Many times, I find that no one is preferring the named arg thing
> > 2. It's my preference to have singular controller name for view, edit
> > and add:
> >     products   instead of products/index
> >     product/view/   instead of products/view
> >     product/edit/   instead of products/edit
>
> >     I wanted others preferences too; thanks for sharing.
>
> > --
> >   <?php echo 'Just another PHP saint'; ?>
> > Email: rrjanbiah-at-Y!com    Blog:http://rajeshanbiah.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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