This is the first time I need to change the default Zend Router, so I want to
make sure I'm doing it right. I need to have my links like so;
http://register.example.com/companyname/controller/action. 

I looked on this forum and found a solution that might work:

$route = new Zend_Controller_Router_Route(
        ':companyname/:controller/:action/*',
        array(
                'module' => 'default',
                'controller' => 'index',
                'action' => 'index'
        )
);
$router->addRoute('newroute', $route); 

Is this the proper way to solve my problem? Finally, how would I be able to
determine the companyname in the link in my bootstrap file? Thanks so much
for your help!
-- 
View this message in context: 
http://www.nabble.com/New-Router-Question-tp24899290p24899290.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to