Zend\Mvc\Router\Http\Method and child routes
问题 i have defined two routes, /shoppingcart/ and a child route /shoppingcart/add/ which should only be available for POST requests. 'routes' => array( 'shoppingcart' => array( 'type' => 'literal', 'options' => array( 'route' => '/shoppingcart/', 'defaults' => array( 'controller' => 'ShoppingcartController', 'action' => 'shoppingcart', ), ), 'may_terminate' => true, 'child_routes' => array ( 'add-product' => array( 'type' => 'method', 'options' => array( 'verb' => 'post', 'route' => 'add/',