DASPRiD wrote:
>
> The rest-route is overriding the module given in the hostname route. You
> may try this (not tested):
>
No good. Here is my current code:
$front = Zend_Controller_Front::getInstance();
$router = $front->getRouter();
$apiRoute = new
Zend_Controller_Router_Route_Hostname('api.blitz.com',
array('module' => 'api'));
$restRoute = new Zend_Rest_Route($front, array('module' =>
'api'),
array('api'));
$router->addRoute('api', $apiRoute->chain($restRoute));
--
View this message in context:
http://old.nabble.com/Zend_Rest_Route-%2B-Chaining-tp26348056p26352519.html
Sent from the Zend Framework mailing list archive at Nabble.com.