what's a best solution?

On Oct 16, 5:32 pm, lapinski <lapinski....@gmail.com> wrote:
> * matches everything (including /), so your syntax will not only match what
> you wanted, but also match some URLs that you may not want (e.g.
> '/artist/ARTISTNAME/this_is_not_album_name/album/ALBUMNAME').
>
> Lapinski
>
>
>
> gimperdaniel wrote:
>
> > Ok, this is what I have now.. and it works.. can someone just tell me
> > if it's the right way to do it?
>
> > Router::connect('/artist/*/album/*', array('controller' => 'albums',
> > 'action' => 'view'));
>
> > On Oct 15, 6:20 pm, "gimperdan...@gmail.com" <gimperdan...@gmail.com>
> > wrote:
> >> I am learning about routes now, I used to write my own routes on mod
> >> rewrites before i came to Cake, so I just need some small guidance
> >> since I already have some knowledge...
>
> >> Here's what I need to accomplish:
>
> >>www.myswebsite.com/artist/ARTISTNAME/album/ALBUMNAME
>
> >> On mod rewrite I just had to sub ARTISTNAME & ALBUNAME for two
> >> variables and get the values through GET... I just need to accomplish
> >> the same using the Router.
>
> >> Both ARTISTNAME and ALBUMNAME are UNIQUE fields in two separate tables.
>
> --
> View this message in 
> context:http://www.nabble.com/need-some-help-with-routes...-tp25916976p259326...
> Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to