Ground Sunlight

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

ユーザ用ツール

サイト用ツール


apricot:usage:ja:http

差分

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

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

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
apricot:usage:ja:http [2020/08/25 20:35]
y2sunlight
apricot:usage:ja:http [2020/09/03 13:45] (現在)
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:usage:ja:utility|Apricot ユーティリティ]]   * [[apricot:usage:ja:utility|Apricot ユーティリティ]]
  
行 58: 行 59:
 </code> </code>
  
-以下は、これを同じす。''get()'' は第2引数にデフォルト値を指定できます。+以下は、上の例と同じ結果になります。''get()'' は第2引数にデフォルト値を指定できます。
  
 <code php> <code php>
行 354: 行 355:
 レスポンス処理用のボイラープレートには以下の関数があります。render()とredirect()はコントローラアクションで、その他はHTMLテンプレートでよく使われる関数です。 レスポンス処理用のボイラープレートには以下の関数があります。render()とredirect()はコントローラアクションで、その他はHTMLテンプレートでよく使われる関数です。
  
 +{{tablelayout?colwidth="350px"}}
 ^ヘルパー関数^機能^ ^ヘルパー関数^機能^
-|render\\ (string $view=null, array $variables=[])\\ :RenderResponse|RenderResponseの生成 \\ テンプレート名とテンプレート変数を指定します| +|render(string $view=null, array $variables=[])\\ :RenderResponse|RenderResponseの生成 \\ テンプレート名とテンプレート変数を指定します| 
-|redirect\\ (string $url)\\ :RedirectResponse|RedirectResponseの生成\\ リダイレクトURLを指定します| +|redirect(string $url):RedirectResponse|RedirectResponseの生成\\ リダイレクトURLを指定します| 
-|old\\ (string $key, $default = null)|キーを指定して前回の入力値を取得します|+|old(string $key, $default = null):string|キーを指定して前回の入力値を取得します|
 |back():string|前回のURIを取得します| |back():string|前回のURIを取得します|
 |errors():ErrorBag|前回のエラーバッグを取得します| |errors():ErrorBag|前回のエラーバッグを取得します|
行 393: 行 395:
  
 <code php> <code php>
-<input type="text" name="account" id="account" value="{{old('name',$user->name)}}">+<input type="text" name="account" id="account" value="{{old('account',$user->account)}}">
 </code> </code>
  
apricot/usage/ja/http.1598355355.txt.gz · 最終更新: 2020/08/25 20:35 by y2sunlight