**Yoink** It's my space now!
.
If I'm grasping what you're after (not likely) you need to look towards
your routes.php file.

$Route->connect('/', array('controller' => 'main');
//you'll need to specify controllers that don't fit into the ArtistName
construct
$Route->connect('/admin/', array('controller' = 'admin');
$Route->connect('/:artistname/:controller/:action/:id',
array('controller' => 'artists'));

That alone should get you pretty close... if you really need the
/ArtistName/AritistAlbum/ sturcture you'll probably have to go further
in you routes and put something like this (keep in mind i really don't
know what your structure looks like):
$Route->connect('/:artistname/:albumname/:action/:songname',
array('controller' => 'artists');

The downside to this is that you'll need to create a hard route for
each action in the users controller because the if you request
/RockingBadGuys/comments/add  the application will need to know if that
is an album name or an action.

Also worth a look, I found the post by Mariano Iglesias Post on the
Bakery to be very helpful in the area of creating unique urls.  It
especially applys to your blog, but could be modified for artist names,
album names and songs.http://bakery.cakephp.org/articles/view/170

GL,
- Chris

On Dec 28, 10:44 am, "thdz.x" <[EMAIL PROTECTED]> wrote:
hello,

sorry if this annoying but ive read the manual, and i searched the
group. i tried my best, but i' dont get it. its not there or i dont
understand something.

im on some first cake-apps, and everything is quite clear and simple.
ive build the main mvc stuff. but i dont like the standard-urls.
they're a very cool when developing but for the final product ...
somehow i must build a site- or front-controller that hold some things
together.

ok, i have a site for a record-label.

in the end it should look something like this:

http://domain.com/      ##some welcome/central 
home-page-controllerhttp://domain.com/ArtistName/     ## default 
artists-homehttp://domain.com/ArtistName/commentsor .../photos   ## some
"sub-pages"http://domain.com/ArtistName/ArtistAlbum/  ## home-page for the 
albumhttp://domain.com/ArtistName/ArtistAlbum/?play=songnamehttp://domain.com/admin

sofar i can access all models/controllers via standard url.

/comments/view/ArtistName/
or
/playlist/view/ArtistName
etc.

the same question for a blog would be:

http://domain.com/posts/postName/comments/add
or even betterhttp://domain.com/postName/comments/add

thank you for any input.
please point me to some articles/tutorials if you know some. i like to
read. :-)

thdz.x


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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