Is it possible to define a custom Zend_Rest_Route? Meaning, can I do
something like this?
$router->addRoute(
'news-rest',
new Zend_Rest_Route(
$front,
array(),
array(
'default' => array(
'news',
),
)
)
);
$router->addRoute(
'news',
new Zend_Controller_Router_Route(
'about/news/*',
array(
'controller' => 'news',
)
)
);
The setup above does not route correctly when using "about/news" but
does work when using the regular "news" path. Is there a way to define
a custom "base" for a Zend_Rest_Route? In other words, can I get REST
routing to work for anything other than the one-to-one mapping of
controller to path name?
Thanks,
Bradley
--
Bradley Holt
bradley.holt@foundline.com
没有评论:
发表评论