View Single Post
  #2 (permalink)  
Old 06-07-2008, 04:13 AM
cheyo cheyo is offline
Junior Member
 
Join Date: May 2008
Posts: 5
Default

i found the answer by myself. it should like the following:

PHP Code:
    /* added by cheyo 2008-06-06 above */
    
$router $frontController->getRouter(); // returns a rewrite router by default
    
$route = new Zend_Controller_Router_Route_Regex(
        
'([^/]+)/([^/]+)/(\d+)',
        
null/* this line could be: array('module' => 'default') */
        
array(
            
=> 'controller',
            
=> 'action',
            
=> 'id'
        
)
    );
    
$router->addRoute('archive'$route);    
    
/* added by cheyo 2008-06-06 end */ 
Reply With Quote