Kyle Spraggs wrote:
> 
> 
> 
> 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));
> 

Actually, http://api.mydomain.com matches but
http://api.mydomain.com/controller reverts back to the default module.
-- 
View this message in context: 
http://old.nabble.com/Zend_Rest_Route-%2B-Chaining-tp26348056p26352578.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to