「ver4/関数リファレンス/Mailform/control」を編集中
提供: baserCMS公式ガイド
警告: ログインしていません。
編集すると、IPアドレスがこのページの編集履歴に記録されます。この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
行6: | 行6: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | <?php $this->Mailform->control( $type , $fieldName , [$options] , [$attributes] ); ?> | + | <?php $this->Mailform->control( [$type] , [$fieldName] , [$options] , [$attributes] ); ?> |
</syntaxhighlight> | </syntaxhighlight> | ||
## パラメーター | ## パラメーター | ||
(string) $type | (string) $type | ||
− | + | コントロールタイプ | |
(string) $fieldName | (string) $fieldName | ||
− | + | フィールド文字列 | |
(array|) $options | (array|) $options | ||
− | + | コントロールソース | |
(array|) $attributes | (array|) $attributes | ||
− | + | HTML属性 | |
## 戻り値 | ## 戻り値 | ||
(string) | (string) | ||
− | + | フォームコントロールのHTMLタグ | |
## 用例 | ## 用例 |