+ Reply to Thread
Results 1 to 3 of 3

Thread: does changing route make sense?

  1. #1
    frankx is offline 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

  2. #2
    Jobinma is offline 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!!

  3. #3
    Untitled No. 4 is offline 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.

+ Reply to Thread

Similar Threads

  1. Undocumented option 'route', route untranslated content phrases to default language
    By tueschej in forum Internationalization (i18n) & Localization (l10n)
    Replies: 3
    Last Post: 07-18-2010, 01:53 PM
  2. How can I collect/make $bootstrap
    By bluesapphire in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 11-14-2009, 01:48 PM
  3. zend route assembling parameters from other route
    By erwanpia in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 11-02-2009, 11:56 AM
  4. Let's make a CMS
    By albeva in forum Project collaboration/partnership
    Replies: 22
    Last Post: 04-16-2009, 04:01 AM
  5. how make ZF more performant
    By BlaCK ErrOR in forum Installation & Configuration
    Replies: 0
    Last Post: 05-20-2008, 08:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts