View Single Post
  #2 (permalink)  
Old 07-16-2008, 08:20 PM
bennell bennell is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Default

Try something like this (using Zend_Config_Ini... code would go in your ini file)
1) domain.com/ Will work out of the box
2) domain.com/site/
Code:
routes.site.route = ":name"
Will default to index action, index controller. Inside your controller:
PHP Code:
$this->_getParam('name'
will equal 'site'

3) domain.com/site/page
Code:
routes.sitePage.route = ":name/:controller"
Will default to index action, and whatever controller is specified in the URL.

You may also have to define
Code:
routes.sitePageAction.route = ":name/:controller/:action"
routes.sitePageActionParams.route = ":name/:controller/:action/*"
Reply With Quote