当前位置: 首页>>代码示例>>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;未经允许,请勿转载。