當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TbHtml::activePasswordField方法代碼示例

本文整理匯總了PHP中TbHtml::activePasswordField方法的典型用法代碼示例。如果您正苦於以下問題:PHP TbHtml::activePasswordField方法的具體用法?PHP TbHtml::activePasswordField怎麽用?PHP TbHtml::activePasswordField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TbHtml的用法示例。


在下文中一共展示了TbHtml::activePasswordField方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

	
	<div class="form-control input-lg" style="width: 45%;">
		<?php 
echo TbHtml::activeLabelEx($model, 'username');
?>
		<?php 
echo TbHtml::activeTextField($model, 'username');
?>
	</div><br/>
	
	<div class="form-control input-lg" style="width: 45%;">
		<?php 
echo TbHtml::activeLabelEx($model, 'password');
?>
		<?php 
echo TbHtml::activePasswordField($model, 'password');
?>
	</div><br/>
	
	<div style="width: 45%;">
		<p class="hint">
		<?php 
echo TbHtml::link(UserModule::t("Register"), Yii::app()->getModule('user')->registrationUrl);
?>
<br/><?php 
echo TbHtml::link(UserModule::t("Lost Password?"), Yii::app()->getModule('user')->recoveryUrl);
?>
		</p>
	</div>
	<!--
	<div class="row-fluid rememberMe">
開發者ID:Rudianasaja,項目名稱:cycommerce,代碼行數:30,代碼來源:login.php

示例2: testActivePasswordField

 public function testActivePasswordField()
 {
     $I = $this->codeGuy;
     $html = TbHtml::activePasswordField(new Dummy(), 'password', array('class' => 'input'));
     $input = $I->createNode($html, 'input[type=password]');
     $I->seeNodeAttributes($input, array('class' => 'input', 'id' => 'Dummy_password', 'name' => 'Dummy[password]', 'value' => 'secret'));
 }
開發者ID:AlexanderGrant1,項目名稱:AC41004,代碼行數:7,代碼來源:TbHtmlTest.php

示例3: passwordField

 /**
  * Renders a password field for a model attribute.
  * @param CModel $model the data model.
  * @param string $attribute the attribute.
  * @param array $htmlOptions additional HTML attributes.
  * @return string the generated input field.
  * @see TbHtml::activePasswordField
  */
 public function passwordField($model, $attribute, $htmlOptions = array())
 {
     return TbHtml::activePasswordField($model, $attribute, $htmlOptions);
 }
開發者ID:imanifaiz,項目名稱:angular-music-db,代碼行數:12,代碼來源:TbActiveForm.php

示例4: array

	<?php 
echo TbHtml::activePasswordField($form, 'password');
?>
	<p class="hint">
	<?php 
echo UserModule::t("Minimal password length 4 symbols.");
?>
	</p>
	</div>
	
	<div class="row-fluid">
	<?php 
echo TbHtml::activeLabelEx($form, 'verifyPassword');
?>
	<?php 
echo TbHtml::activePasswordField($form, 'verifyPassword');
?>
	</div>
	
	
	<div class="row-fluid submit">
	<?php 
echo TbHtml::button(UserModule::t('Save'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'submit' => ''));
?>
	</div>

<?php 
echo TbHtml::endForm();
?>
</div><!-- form -->
</div>
開發者ID:Rudianasaja,項目名稱:cycommerce,代碼行數:31,代碼來源:changepassword.php

示例5: passwordField

 /**
  * Renders a password field for a model attribute.
  * This method is a wrapper of {@link TbHtml::activePasswordField}.
  * Please check {@link TbHtml::activePasswordField} for detailed information
  * about the parameters for this method.
  * @param CModel $model the data model
  * @param string $attribute the attribute
  * @param array $htmlOptions additional HTML attributes.
  * @return string the generated input field
  */
 public function passwordField($model, $attribute, $htmlOptions = array())
 {
     return $this->wrapControl(TbHtml::activePasswordField($model, $attribute, $htmlOptions));
 }
開發者ID:yii-twbs,項目名稱:yiistrap,代碼行數:14,代碼來源:TbActiveForm.php


注:本文中的TbHtml::activePasswordField方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。