Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


apricot:usage:ja:utility

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
apricot:usage:ja:utility [2020/09/01 20:06]
y2sunlight [前回値]
apricot:usage:ja:utility [2020/09/03 13:47] (現在)
y2sunlight [Apricot ユーティリティ]
行 17: 行 17:
   * [[apricot:usage:ja:validation|Apricot バリデーション]]   * [[apricot:usage:ja:validation|Apricot バリデーション]]
   * [[apricot:usage:ja:provider|Apricot サービスプロバイダー]]   * [[apricot:usage:ja:provider|Apricot サービスプロバイダー]]
 +  * [[apricot:usage:ja:authentication|Apricot ユーザ認証]]
   * Apricot ユーティリティ   * Apricot ユーティリティ
  
行 215: 行 216:
 ==== レスポンス ==== ==== レスポンス ====
  
-{{tablelayout?colwidth="250px"}}+{{tablelayout?colwidth="400px"}}
 ^関数^概要^ ^関数^概要^
-|render\\ (string $view=null, array $variables=[])\\ :Apricot\Foundation\Response\RenderResponse|RenderResponseの生成 \\ テンプレート名とテンプレート変数指定します| +|render(string $view=null, array $variables=[])\\ :Apricot\Foundation\Response\RenderResponse|RenderResponseをします
-|redirect\\ (string $url)\\ :Apricot\Foundation\Response\RedirectResponse|RedirectResponseの生成\\ リダイレクトURL指定します|+|redirect(string $url)\\ :Apricot\Foundation\Response\RedirectResponse|RedirectResponseをします|
  
-''render()'' は、・・・+''render()'' は、テンプレート名(string)とテンプレート変数(array)を指定してHTMLをレンダリングして''RenderResponse''オブジェクトを返す関数です。
  
 <code php> <code php>
 +return render("user.index", ["users"=>$users]);
 </code> </code>
  
-''redirect()'' は、・・・+''redirect()'' は、リダイレクト先URIを指定して ''RedirectResponse'' オブジェクトを返す関数です。
  
 <code php> <code php>
 +return redirect(route("user/{$id}/edit"));
 </code> </code>
 +
 +これらの関数の詳細は「[[apricot:usage:ja:http#ボイラープレート1|レスポンスのボイラープレート]]」を参照して下さい。
  
 \\ \\
  
apricot/usage/ja/utility.1598958397.txt.gz · 最終更新: 2020/09/01 20:06 by y2sunlight