Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2008, 10:32 PM
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default does changing route make sense?

Hello,

if I want to want to provide lists and profiles of artists, locations and agencies, an url could look like:

/artist/arstists_name (should deliver profile of artist named "artists_name")

or

/location (should deliver list of locations)

I could route "/:type/:name" and use a CentralController which detects by Param("type") which profile-type to deliver instead of creation three differen Controller named ArtistController, LocationController, AgencyController etc.pp.;

It would lead to conducting all request to one actionController, which seems to be a duplication of the FrontController-Pattern.

Does this make sense?

Dank und Gruß,

frankx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-24-2008, 09:22 PM
Junior Member
 
Join Date: Oct 2008
Posts: 4
Default

This is a nice conception "problem". For your question, there is no good or bad solution at first.

To me, the decision would be based on the number of categories I have and the complexity involved when dealing with a category. If you have a hundred categories, I would certainly not create a hundred controllers!

Good luck... even if luck won't help!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:37 PM.