Zend Framework Forum

Go Back   Zend Framework Forum > Zend Framework General discussions > Concepts, Ideas, Planning

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-20-2008, 10:32 PM
Junior Member
 
Join Date: Nov 2008
Posts: 4
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: 6
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
  #3 (permalink)  
Old 01-25-2009, 11:28 PM
Junior Member
 
Join Date: Jul 2008
Posts: 28
Default

Doesn't make sense to me...
if you have three urls /artist/artist_name, /location/location_name and /agency/agency_name why would you want them all in one controller? What would you achieve by that? It's not less coding than doing three controllers anyway.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 06:49 PM.


Designed by: Miner Skinz Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0