本文整理匯總了PHP中X2Html::textField方法的典型用法代碼示例。如果您正苦於以下問題:PHP X2Html::textField方法的具體用法?PHP X2Html::textField怎麽用?PHP X2Html::textField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類X2Html
的用法示例。
在下文中一共展示了X2Html::textField方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
<?php
echo CHtml::label(Yii::t('app', 'Name:'), 'RelationshipName');
echo "<div id='inline-relationships-autocomplete-container'>";
X2Model::renderModelAutocomplete('Contacts');
echo CHtml::hiddenField('RelationshipModelId');
echo "</div>";
echo CHtml::textField('myName', $model->name, array('disabled' => 'disabled'));
?>
<!-- <input type="hidden" id='RelationshipModelId' name="RelationshipModelId"> -->
</div>
<div class='row'>
<?php
echo X2Html::label(Yii::t('app', 'Label:'), 'RelationshipLabelButton');
echo X2Html::textField('secondLabel');
echo X2Html::textField('firstLabel', '', array('title' => Yii::t('app', 'Create a different label for ') . $model->name));
echo X2Html::hiddenField('mutual', 'true');
echo X2Html::link('', '', array('id' => 'RelationshipLabelButton', 'class' => 'pseudo-link fa fa-long-arrow-right', 'title' => Yii::t('app', 'Create a different label for ') . $model->name));
?>
</div>
<?php
echo X2Html::csrfToken();
echo CHtml::button(Yii::t('app', 'Create Relationship'), array('id' => 'add-relationship-button', 'class' => 'x2-button'));
?>
</form>
<?php
}
?>