このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
apricot:usage:ja:http [2020/08/19 09:18] y2sunlight |
apricot:usage:ja:http [2020/09/03 13:45] (現在) y2sunlight [Apricot リクエストとレスポンス] |
||
---|---|---|---|
行 11: | 行 11: | ||
* Apricot リクエストとレスポンス | * Apricot リクエストとレスポンス | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | + | * [[apricot: |
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
行 55: | 行 59: | ||
</ | </ | ||
- | 以下は、これを同じです。'' | + | 以下は、上の例と同じ結果になります。'' |
<code php> | <code php> | ||
行 351: | 行 355: | ||
レスポンス処理用のボイラープレートには以下の関数があります。render()とredirect()はコントローラアクションで、その他はHTMLテンプレートでよく使われる関数です。 | レスポンス処理用のボイラープレートには以下の関数があります。render()とredirect()はコントローラアクションで、その他はHTMLテンプレートでよく使われる関数です。 | ||
+ | {{tablelayout? | ||
^ヘルパー関数^機能^ | ^ヘルパー関数^機能^ | ||
- | |render\\ (string $view=null, array $variables=[])\\ : | + | |render(string $view=null, array $variables=[])\\ : |
- | |redirect\\ (string $url)\\ : | + | |redirect(string $url): |
- | |old\\ (string $key, $default = null)|キーを指定して前回の入力値を取得します| | + | |old(string $key, $default = null):string|キーを指定して前回の入力値を取得します| |
|back(): | |back(): | ||
|errors(): | |errors(): | ||
行 390: | 行 395: | ||
<code php> | <code php> | ||
- | <input type=" | + | <input type=" |
</ | </ | ||