URL がhttp://site.com/api/location/ {location_id}/comment/の場合、CommentController で Index Action を使用するにはどうすればよいですか
私はコードを持っています
$r = new Zend_Controller_Router_Route_Regex('api/location/(.*)/comment',
array('module' => 'api' ,'controller' => 'comment', 'action' => 'index'),
array(1 => 'param1')
);
$router->addRoutes('route6', $r);
動作しません。IndexAction を実行しませんが、OK を返します。どうすれば修正できますか?
p/s: ロケーションも管理者です