4
嗨我想在Zend應用程序中設置一些REST路由,我想知道如何限制可以訪問路由的HTTP方法。Zend路由和HTTP動詞/方法
$route = new Zend_Controller_Router_Route('user/reset_password', array(
'module' => 'default',
'controller' => 'user',
'action' => 'resetpassword'
));
$front_controller->getRouter()->addRoute('reset_password', $route);
在該路線中,我想指定像GET HTTP謂詞,POST,PUT,等等,這路線將響應,如添加「方法」 =>「POST」到陣列。
感謝,