メインメニュー
XAMPP アレンジ
IED
WSL2
-
道具箱
リポジトリ編
フレームワーク編
公開ソフトウェア
メタ
リンク
- PHP ライブラリ
- PHP 言語
apricot:usage:ja:utility文書の過去の版を表示しています。
編集中
Apricot ユーティリティ
ボイラープレート
boilerplates.php
関数 機能 env($key, $default = null) 環境変数(.envファイル設定値)の取得 abort(int $code, string $message=null) HTTP例外(400,500番台)の発生 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):string Returns the full pathname in the project directory or its child directory.
プロジェクトディレクトリまたはその子ディレクトリの完全パス名を返します。config_dir($path = null):string Returns the full pathname in the config directory or its child directory.
configディレクトリまたはその子ディレクトリの完全パス名を返します。assets_dir($path = null):string Returns the full pathname in the assets directory or its child directory.
アセットディレクトリまたはその子ディレクトリの完全パス名を返します。var_dir($path = null):string Returns the full pathname in the var directory or its child directory.
varディレクトリまたはその子ディレクトリの完全パス名を返します。public_dir($path = null):string Returns the full pathname in the public directory or its child directory.
パブリックディレクトリまたはその子ディレクトリの完全パス名を返します。url($path = null):string Returns the application URL.
アプリケーションのURLを返します。url_ver(string $filename) Returns a file URL with the application version.
アプリケーションのバージョンを含むファイルURLを返します。route($path = null):string Returns the routing path.
ルーティングパスを返します。controllerName():string Returns the current controller name.
現在のコントローラー名を返します。actionName():string Returns the current action name.
現在のアクション名を返します。config($key, $default = null) Returns the value of the configuration Variable specified by the dot-notation key.
ドット表記キーで指定された構成変数の値を返します。__($key, $params = []) Returns the translated message specified by the dot-notation key.
ドット表記キーで指定された翻訳されたメッセージを返します。inputLabels
(string $message_key):arrayフォームデータのラベル配列を取得 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=[])
:Apricot\Foundation\Response\RenderResponseRenderResponseの生成
テンプレート名とテンプレート変数を指定しますredirect
(string $url)
:Apricot\Foundation\Response\RedirectResponseRedirectResponseの生成
リダイレクトURLを指定しますold
(string $key, $default = null)キーを指定して前回の入力値を取得します back():string 前回のURIを取得します errors():Apricot\Foundation\ErrorBag 前回のエラーバッグを取得します
apricot/usage/ja/utility.1596598404.txt.gz · 最終更新: 2020/08/05 12:33 by tanaka
コメント