パス::ルーター

経路をルーティングするためのツール
今すぐダウンロード

パス::ルーター ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 価格:
  • FREE
  • 出版社名:
  • Stevan Little
  • 出版社のWebサイト:
  • http://search.cpan.org/stevan/

パス::ルーター タグ


パス::ルーター 説明

パスをルーティングするためのツール Path :: RouterはPathsをルーティングするためのツールです.Synopsis My $ ROUTER = PATH :: Router-> New; $ router-> add_route( 'blog' =>(defaults => {controller => 'blog'、action => 'index'、}、#あなたは一致のための修正された「ターゲット」#を提供することができます#ターゲット=> my :: app-> get_controller( 'blog') - > get_action( 'index')); $ router-> add_route( 'blog /:year /:月/:day' =>(デフォルト=> {controller => 'blog'、action => 'show_date'、#validation => {#... Raw-Regexp Refs Year => QR / D {4} /、#...作成した月=> 'NewerRexth'、#... moose anon-subtypes inline ain-subtype =>サブタイプ( 'int' =>ここで、{$ _ add_route( 'blog /:action / ?: id' =>(デフォルト=> {controller => 'blog'、}、検証=> {action => qr / d + /、 ID => 'int'、#もムースタイプも使用しています});) / Blog / edit / 15 ');#...あなたのコードでMy $ URI = $ router-> uri_for(controller =>' blog '、action =>' show_date '、年=> 2006、月=> 10、 Day => 5、)。このモジュールは、ディスパッチのために適したパラメータへのパスを分解する方法を提供します。それはまたパラメータのリストを取り、それに適切なURIを構築するという点を提供します。要件: ・Perl


パス::ルーター 関連ソフトウェア