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