Zend - static and dynamic route
问题 How should I prepare my routes to deal with it, instead of addictional parts in url? $routes = array( /** * Static */ 'news' => new Zend_Controller_Router_Route('news/:page', array('controller' => 'news', 'action' => 'index', 'page' => 1 ) ), /** * Dynamic */ 'thread' => new Zend_Controller_Router_Route(':slug/:page', array('controller' => 'Thread', 'action' => 'index', 'page' => 1 ) ), e.g. example.com/ thread-name-slug it shows thread with slug thread-name-slug but when I visit example.com/