Ground Sunlight

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

ユーザ用ツール

サイト用ツール


サイドバー

メインメニュー

XAMPP アレンジ

IED

WSL2

道具箱

リポジトリ編

フレームワーク編

公開ソフトウェア

メタ
リンク


このページへのアクセス
今日: 2 / 昨日: 1
総計: 958

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):stringReturns the full pathname in the project directory or its child directory.

プロジェクトディレクトリまたはその子ディレクトリの完全パス名を返します。
config_dir($path = null):stringReturns the full pathname in the config directory or its child directory.

configディレクトリまたはその子ディレクトリの完全パス名を返します。
assets_dir($path = null):stringReturns the full pathname in the assets directory or its child directory.

アセットディレクトリまたはその子ディレクトリの完全パス名を返します。
var_dir($path = null):stringReturns the full pathname in the var directory or its child directory.

varディレクトリまたはその子ディレクトリの完全パス名を返します。
public_dir($path = null):stringReturns the full pathname in the public directory or its child directory.

パブリックディレクトリまたはその子ディレクトリの完全パス名を返します。
url($path = null):stringReturns the application URL.

アプリケーションのURLを返します。
url_ver(string $filename)Returns a file URL with the application version.

アプリケーションのバージョンを含むファイルURLを返します。
route($path = null):stringReturns the routing path.

ルーティングパスを返します。
controllerName():stringReturns the current controller name.

現在のコントローラー名を返します。
actionName():stringReturns 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\RenderResponse
RenderResponseの生成
テンプレート名とテンプレート変数を指定します
redirect
(string $url)
:Apricot\Foundation\Response\RedirectResponse
RedirectResponseの生成
リダイレクトURLを指定します
old
(string $key, $default = null)
キーを指定して前回の入力値を取得します
back():string前回のURIを取得します
errors():Apricot\Foundation\ErrorBag前回のエラーバッグを取得します


コメント

コメントを入力. Wiki文法が有効です:
 
apricot/usage/ja/utility.1596598404.txt.gz · 最終更新: 2020/08/05 12:33 by tanaka