個人用ツール

「ver4/関数リファレンス/Mailform/control」の版間の差分

提供: baserCMS公式ガイド

移動: 案内, 検索
 
行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属性
+
: 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タグ

用例

基本

コード

 

出力

 

変更履歴

ソースファイル

関連資料

類似の関数