「ver4/関数リファレンス/Mailform/control」の版間の差分
提供: baserCMS公式ガイド
Katokaisya (トーク | 投稿記録) |
Katokaisya (トーク | 投稿記録) |
||
行6: | 行6: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | <?php $this->Mailform->control( | + | <?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属性 | + | : HTML属性 |
## 戻り値 | ## 戻り値 | ||
(string) | (string) | ||
− | フォームコントロールのHTMLタグ | + | : フォームコントロールのHTMLタグ |
## 用例 | ## 用例 |
2016年11月4日 (金) 21:55時点における最新版
[このコンテンツは内容調整中です]
説明
メールフィールドのデータよりコントロールを生成する
使い方
<?php $this->Mailform->control( $type , $fieldName , [$options] , [$attributes] ); ?>
パラメーター
- (string) $type
- コントロールタイプ
- (string) $fieldName
- フィールド文字列
- (array|) $options
- コントロールソース
- (array|) $attributes
- HTML属性
戻り値
- (string)
- フォームコントロールのHTMLタグ