このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
apricot:usage:ja:utility [2020/07/29 13:34] tanaka 作成 |
apricot:usage:ja:utility [2020/08/12 10:08] y2sunlight |
||
---|---|---|---|
行 6: | 行 6: | ||
--- // | --- // | ||
- | [[apricot: | + | [[apricot: |
目次 | 目次 | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
行 16: | 行 18: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | ||
* Apricot ユーティリティ | * Apricot ユーティリティ | ||
行 22: | 行 23: | ||
===== ボイラープレート ===== | ===== ボイラープレート ===== | ||
- | >TODO | + | |
+ | ==== boilerplates.php ==== | ||
+ | |||
+ | ^関数^機能^ | ||
+ | |env($key, $default = null)|環境変数(.envファイル設定値)の取得| | ||
+ | |abort(int $code, string $message=null)|HTTP例外(400, | ||
+ | |app($dot = null, $default=null)|Returns the value of the application setting specified by the dot-notation key.\\ \\ ドット表記キーで指定されたアプリケーション設定の値を返します。| | ||
+ | |app_has($dot = null)|Checks if an application setting key is present.\\ \\ アプリケーション設定キーが存在するかどうかを確認します。| | ||
+ | |project_dir($path = null): | ||
+ | |config_dir($path = null): | ||
+ | |assets_dir($path = null): | ||
+ | |var_dir($path = null): | ||
+ | |public_dir($path = null): | ||
+ | |url($path = null): | ||
+ | |url_ver(string $filename)|Returns a file URL with the application version.\\ \\ アプリケーションのバージョンを含むファイルURLを返します。| | ||
+ | |route($path = null): | ||
+ | |controllerName(): | ||
+ | |actionName(): | ||
+ | |config($key, | ||
+ | |<nowiki>__</ | ||
+ | |inputLabels\\ (string $message_key): | ||
+ | |input\\ (string $key, $default=null)|フォームデータを取得| | ||
+ | |queryString\\ (string $key, $default=null)|クエリ文字列を取得| | ||
+ | |session\\ (string $key, $default=null)|セッション変数を取得| | ||
+ | |flash\\ (string $key, $default=null)|フラッシュ変数を取得| | ||
+ | |cookie\\ (string $key, $default=null)|クッキー変数を取得| | ||
+ | |render\\ (string $view=null, array $variables=[])\\ : | ||
+ | |redirect\\ (string $url)\\ : | ||
+ | |old\\ (string $key, $default = null)|キーを指定して前回の入力値を取得します| | ||
+ | |back(): | ||
+ | |errors(): | ||
\\ | \\ | ||