Re: |OT| What is your preferred URL structure?
I like slugs for main args and named args for extra params. Makes it easy for me to remember and maintain stuff. For example, on my site you read an article with a slug: http://dsi.vozibrale.com/articles/view/which-version-of-cakephp-is-good-for-you but you do the extra highlighting if you want like this: http://dsi.vozibrale.com/articles/view/which-version-of-cakephp-is-good-for-you/highlight:choo Which seems fairly readable to me. I might be wrong though ;-) On Apr 9, 5:48 pm, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: This strange, but I'd really like to know your preferred URL structure: 1.http://foo.com/foos/index/x/1/2 (path like) 2.http://foo.com/foos/index/x/slug_1/slug_2 (path like, but with slug) 3.http://foo.com/foos/index/x/Nam+e+1/Nam+e+2 (path like, but with findByName) 4.http://foo.com/foos/index/x/a:1/b:2(named args) 5. Other? -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: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 -~--~~~~--~~--~--~---
Re: |OT| What is your preferred URL structure?
On Apr 16, 9:35 pm, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: I like slugs for main args and named args for extra params. Makes it easy for me to remember and maintain stuff. For example, on my site you read an article with a slug: http://dsi.vozibrale.com/articles/view/which-version-of-cakephp-is-go... but you do the extra highlighting if you want like this: http://dsi.vozibrale.com/articles/view/which-version-of-cakephp-is-go... Which seems fairly readable to me. I might be wrong though ;-) snip Thanks for your comments. Nice to know, at least one person is liking named arg :-D -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: 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 -~--~~~~--~~--~--~---
Re: |OT| What is your preferred URL structure?
On Apr 10, 12:12 am, jonknee [EMAIL PROTECTED] wrote: For one site recently that had a database of restaurants broken down by neighborhood (and city) I went all keyword based. Worked well (city/ neighborhood are all variable keywords): /browse/city /browse/city/neighborhood /restaurant/city/neighborhood/slug It took some fairly complex routing to get it straight (there are obviously more URL types than that), but well worth it in the end because all the URLs are human-readable. Thanks for your comments. Just curious, what was your paginated URL (IOW, did you use named arg stuff?)? I personally find that no one is preferring named arg. -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: 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 -~--~~~~--~~--~--~---
Re: |OT| What is your preferred URL structure?
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!comBlog: 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 -~--~~~~--~~--~--~---
Re: |OT| What is your preferred URL structure?
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!comBlog: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 -~--~~~~--~~--~--~---
Re: |OT| What is your preferred URL structure?
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!comBlog: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 -~--~~~~--~~--~--~---
|OT| What is your preferred URL structure?
This strange, but I'd really like to know your preferred URL structure: 1. http://foo.com/foos/index/x/1/2 (path like) 2. http://foo.com/foos/index/x/slug_1/slug_2 (path like, but with slug) 3. http://foo.com/foos/index/x/Nam+e+1/Nam+e+2 (path like, but with findByName) 4. http://foo.com/foos/index/x/a:1/b:2 (named args) 5. Other? -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: 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 -~--~~~~--~~--~--~---
Re: |OT| What is your preferred URL structure?
I have: /news/sport -for category /news/sport/skate/downhill-categroy too (unlimited depth) /news/sport/skate/downhill/new-kids-in-da-hood - for news article Not best solution for seo, but some day sitemap http://www.sitemaps.org/ will make option for us to choose most important segment in url - first or last :) index, categroy, view etc. are removed from url. I think there is no semantics in controller actions names in url, but it's much easyer for programmers. My suggestion is controller/action/slug solution. Sometimes controller/ slug if possible. You can even delete entry and create it again with the same slug, and it is still RESTFULL, (id's are auto_inc.). On Apr 9, 9:12 pm, jonknee [EMAIL PROTECTED] wrote: For one site recently that had a database of restaurants broken down by neighborhood (and city) I went all keyword based. Worked well (city/ neighborhood are all variable keywords): /browse/city /browse/city/neighborhood /restaurant/city/neighborhood/slug It took some fairly complex routing to get it straight (there are obviously more URL types than that), but well worth it in the end because all the URLs are human-readable. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---