* 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, "[email protected]" <[email protected]>
> 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...-tp25916976p25932669.html
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 [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