title: Setting routes in application.ini in Zend Framework
body: <p>I'm a Zend Framework newbie, and I'm trying to work out how to add another route to my application.ini file.</p>
  
  <p>I currently have my routes set up as follows:</p>
  
  <pre><code>resources.router.routes.artists.route = /artists/:stub
  resources.router.routes.artists.defaults.controller = artists
  resources.router.routes.artists.defaults.action = display
  </code></pre>
  
  <p>...so that <em>/artists/joe-bloggs</em> uses the "display" action of the "artists" controller to dipslay the profile the artist in question - that works fine.</p>
  
  <p>What I want to do now is to set up another route so that <em>/artists/joe-bloggs/random-gallery-name</em> goes to the "galleries" action of the "artists" controller.  </p>
  
  <p>I tried adding an additional block to the application.ini file (beneath the block above) like so:</p>
  
  <pre><code>resources.router.routes.artists.route = /artists/:stub/:gallery
  resources.router.routes.artists.defaults.controller = artists
  resources.router.routes.artists.defaults.action = galleries
  </code></pre>
  
  <p>...but when I do that the page at <em>/artists/joe-bloggs</em> no longer works (Zend tries to route it to the "joe-bloggs" controller).</p>
  
  <p>How do I set up the routes in application.ini so that I can change the action of the "artists" controller depending on whether "/:gallery" exists?</p>
  
  <p>I realise I'm probably making a really stupid mistake, so please point out my stupidity and set me on the right path (no pun intended).</p>