« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 25 for getRouter (0.002 sec.)
ルーターのインスタンスを取得する 12337
« Yaf_Dispatcher::getResponse Yaf_Dispatcher::initView » PHP Manual Yaf_Dispatcher ルーターのインスタンスを取得する 検索 Yaf_Dispatcher::getRouter (Yaf >=1.0.0) Yaf_Dispatcher::getRouter — ルーターのインスタンスを取得する 説明 public functi ... on Yaf_Dispatcher::getRouter (): Yaf_Router パラメータ この関数にはパラメータはありません。 戻り値 関連キーワード: Dispatcher ルーター インスタンス get ...
https://man.mtool.work/php/8.3/yaf-dispatcher.getrouter.html
ルーターのインスタンスを取得する 12121
« Yaf_Dispatcher::getResponse Yaf_Dispatcher::initView » PHP Manual Yaf_Dispatcher ルーターのインスタンスを取得する 検索 Yaf_Dispatcher::getRouter (Yaf >=1.0.0) Yaf_Dispatcher::getRouter — ルーターのインスタンスを取得する 説明 public functi ... on Yaf_Dispatcher::getRouter (): Yaf_Router パラメータ この関数にはパラメータはありません。 戻り値 関連キーワード: Yaf Dispatcher ルーター インスタンス ... getRouter パラメータ getResponse Search initView function Router 戻り値 navigate Enter select Esc close open ...
https://man.mtool.work/php/8.3/yaf-dispatcher.getrouter.html
The __construct purpose 9880
« Yaf_Route_Map::assemble Yaf_Route_Map::route » PHP Manual Yaf_Route_Map The __construct purpose 検索 Yaf_Route_Map::__construct (Yaf >=1.0.0) Yaf_Route_Map::__construct — The __construct purpose 説明 public function Yaf_Route_Map::__const ... 戻り値 例 例1 Yaf_Route_Map の例 <?php /** * Add a map route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Map ()); ?> 上の例の出力は、 たとえば以下のようになります。 /* http://yourdomain.co ... bar", ) 例2 Yaf_Route_Map の例 <?php /** * Add a map route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Map ( true , "_" )); ?> 上の例の出力は、 たとえば以下のようになります。 /* http://y ... "map" , //Yaf_Route_Map route "controllerPrefer" => FALSE , "delimiter" => "#!" , ), ); Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addConfig ( new Yaf_Config_Simple ( $config )); ?> 参考 Yaf_Router::addRoute() - 新しいルートをルーターに追加する Yaf ...
https://man.mtool.work/php/8.3/yaf-route-map.construct.html
Yaf_Route_Regex のコンストラクタ 9780
« Yaf_Route_Regex::assemble Yaf_Route_Regex::route » PHP Manual Yaf_Route_Regex Yaf_Route_Regex のコンストラクタ 検索 Yaf_Route_Regex::__construct (Yaf >=1.0.0) Yaf_Route_Regex::__construct — Yaf_Route_Regex のコンストラクタ 説明 public fun ... 例 例1 Yaf_Route_Regex の例 <?php /** * Add a regex route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Regex ( "#^/product/([^/]+)/([^/])+#" , //match request uri leading "/product" arra ... ); ?> 例2 Yaf_Route_Regex (2.3.0 以降) の例 <?php /** * Use match result as MVC name */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Regex ( "#^/product/([^/]+)/([^/])+#i" , //match request uri leading "/product" arr ... 名前付きキャプチャグループ (2.3.0 以降) の例 <?php /** * Use match result as MVC name */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Regex ( "#^/product/(?<name>[^/]+)/([^/])+#i" , //match request uri leading "/produ ...
https://man.mtool.work/php/8.3/yaf-route-regex.construct.html
The __construct purpose 9780
« Yaf_Route_Map::assemble Yaf_Route_Map::route » PHP Manual Yaf_Route_Map The __construct purpose 検索 Yaf_Route_Map::__construct (Yaf >=1.0.0) Yaf_Route_Map::__construct — The __construct purpose 説明 public function Yaf_Route_Map::__const ... 戻り値 例 例1 Yaf_Route_Map の例 <?php /** * Add a map route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Map ()); ?> 上の例の出力は、 たとえば以下のようになります。 /* http://yourdomain.co ... bar", ) 例2 Yaf_Route_Map の例 <?php /** * Add a map route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Map ( true , "_" )); ?> 上の例の出力は、 たとえば以下のようになります。 /* http://y ... "map" , //Yaf_Route_Map route "controllerPrefer" => FALSE , "delimiter" => "#!" , ), ); Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addConfig ( new Yaf_Config_Simple ( $config )); ?> 参考 Yaf_Router::addRoute() - 新しいルートをルーターに追加する Yaf ...
https://man.mtool.work/php/8.3/yaf-route-map.construct.html
Yaf_Route_Regex のコンストラクタ 9680
« Yaf_Route_Regex::assemble Yaf_Route_Regex::route » PHP Manual Yaf_Route_Regex Yaf_Route_Regex のコンストラクタ 検索 Yaf_Route_Regex::__construct (Yaf >=1.0.0) Yaf_Route_Regex::__construct — Yaf_Route_Regex のコンストラクタ 説明 public fun ... 例 例1 Yaf_Route_Regex の例 <?php /** * Add a regex route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Regex ( "#^/product/([^/]+)/([^/])+#" , //match request uri leading "/product" arra ... ); ?> 例2 Yaf_Route_Regex (2.3.0 以降) の例 <?php /** * Use match result as MVC name */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Regex ( "#^/product/([^/]+)/([^/])+#i" , //match request uri leading "/product" arr ... 名前付きキャプチャグループ (2.3.0 以降) の例 <?php /** * Use match result as MVC name */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Regex ( "#^/product/(?<name>[^/]+)/([^/])+#i" , //match request uri leading "/produ ...
https://man.mtool.work/php/8.3/yaf-route-regex.construct.html
ビューを初期化して返す 9166
« Yaf_Dispatcher::getRouter Yaf_Dispatcher::registerPlugin » PHP Manual Yaf_Dispatcher ビューを初期化して返す 検索 Yaf_Dispatcher::initView (Yaf >=1.0.0) Yaf_Dispatcher::initView — ビューを初期化して返す 説明 public function Yaf_Dispatcher: ... View_Interface パラメータ templates_dir options 戻り値 関連キーワード: Dispatcher ビュー 初期化 initView templates options getRouter registerPlugin View Interface ...
https://man.mtool.work/php/8.3/yaf-dispatcher.initview.html
ビューを初期化して返す 9066
« Yaf_Dispatcher::getRouter Yaf_Dispatcher::registerPlugin » PHP Manual Yaf_Dispatcher ビューを初期化して返す 検索 Yaf_Dispatcher::initView (Yaf >=1.0.0) Yaf_Dispatcher::initView — ビューを初期化して返す 説明 public function Yaf_Dispatcher: ... erface パラメータ templates_dir options 戻り値 関連キーワード: Yaf Dispatcher ビュー 初期化 initView templates dir options getRouter Search registerPlugin function string array View Interface パラメータ 戻り値 navigate Enter ...
https://man.mtool.work/php/8.3/yaf-dispatcher.initview.html
Yaf_Route_Rewrite のコンストラクタ 8767
« Yaf_Route_Rewrite::assemble Yaf_Route_Rewrite::route » PHP Manual Yaf_Route_Rewrite Yaf_Route_Rewrite のコンストラクタ 検索 Yaf_Route_Rewrite::__construct (Yaf >=1.0.0) Yaf_Route_Rewrite::__construct — Yaf_Route_Rewrite のコンストラクタ 説 ... 例1 Yaf_Route_Rewrite の例 <?php /** * Add a rewrite route to Yaf_Router route stack */ Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addRoute ( "name" , new Yaf_Route_Rewrite ( "/product/:name/:id/*" , //match request uri leading "/product" array( 'c ... ser" , //route to user controller, 'action' => "list" , //route to list action ), ), ); Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addConfig ( new Yaf_Config_Simple ( $config )); ?> 上の例の出力は、 たとえば以下のようになります。 /* http://yourdoma ... > "user" , //route to user controller, 'action' => ":a" , //route to :a action ), ), ); Yaf_Dispatcher :: getInstance ()-> getRouter ()-> addConfig ( new Yaf_Config_Simple ( $config )); ?> 上の例の出力は、 たとえば以下のようになります。 /* http://yourdoma ...
https://man.mtool.work/php/8.3/yaf-route-rewrite.construct.html
使われているルート名を取得する 8651
« Yaf_Router::__construct Yaf_Router::getRoute » PHP Manual Yaf_Router 使われているルート名を取得する 検索 Yaf_Router::getCurrentRoute (Yaf >=1.0.0) Yaf_Router::getCurrentRoute — 使われているルート名を取得する 説明 public function Yaf_Route ... stry :: set ( "config" , $config ); } public function _initRoute ( Yaf_Dispatcher $dispatcher ) { $router = $dispatcher -> getRouter (); $rewrite_route = new Yaf_Route_Rewrite ( "/product/list/:page" , array( "controller" => "product" , "action" => "list" ... utdown ( Yaf_Request_Abstract $request , Yaf_Response_Abstract $response ) { var_dump ( Yaf_Dispatcher :: getInstance ()-> getRouter ()-> getCurrentRoute ()); } } ?> 上の例の出力は、 たとえば以下のようになります。 /* http://yourdomain.com/product/list/1 * ... getCurrentRoute dispatcher rewrite route regex Bootstrap config Dispatcher list info addRoute ルーティング extends router getRouter Route Rewrite controller action Plugin ...
https://man.mtool.work/php/8.3/yaf-router.getcurrentroute.html
PREV 1 2 3 NEXT