\FilesFormHelper

FilesFormHelper

Add your application-wide methods in the class below, your helpers will inherit them.

Summary

Methods
Properties
Constants
setupFileUploadForm()
uploadFile()
$helpers
No constants found
No protected methods found
$_uploadFileNames
N/A
No private methods found
No private properties found
N/A

Properties

$helpers

$helpers : array

Other helpers used by FormHelper

Type

array

$_uploadFileNames

$_uploadFileNames : array

Type

array — アップロードされたファイルの元ファイル名

Methods

setupFileUploadForm()

setupFileUploadForm() : string

Filesプラグインのアップロードフォームの準備

現在添付されてるファイルのID、フィールド名をhidden で埋め込む

Returns

string

uploadFile()

uploadFile(string  $fieldName, array  $options = array()) : string

Filesプラグイン用のfileフォーム。ファイル削除チェックボックスとファイル名表示付き

Parameters

string $fieldName

フィールド名

array $options

オプション filename => false でフィアル名非表示 remove => falseで削除チェックボックス非表示。デフォルトはtrue

Returns

string —

inputタグ等