本文整理汇总了PHP中Yum::requiredFieldNote方法的典型用法代码示例。如果您正苦于以下问题:PHP Yum::requiredFieldNote方法的具体用法?PHP Yum::requiredFieldNote怎么用?PHP Yum::requiredFieldNote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Yum
的用法示例。
在下文中一共展示了Yum::requiredFieldNote方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$this->breadcrumbs = array(Yum::t('Privacysettings') => array('index'), $model->user->username => array('//user/user/view', 'id' => $model->user_id), Yum::t('Update'));
$this->title = Yum::t('Privacy settings for {username}', array('{username}' => $model->user->username));
?>
<div class="form">
<p class="note">
<?php
Yum::requiredFieldNote();
?>
</p>
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'privacysetting-form', 'enableAjaxValidation' => true));
echo $form->errorSummary($model);
?>
<div class="profile_field_selection">
<?php
echo '<h3>' . Yum::t('Profile field public options') . '</h3>';
echo '<p>' . Yum::t('Select the fields that should be public') . ':</p>';
$i = 1;
$counter = 0;
foreach (YumProfileField::model()->findAll() as $field) {
$counter++;
if ($counter == 1) {
echo '<div class="float-left" style="width: 175px;">';
}
printf('<div>%s<label class="profilefieldlabel" for="privacy_for_field_%d">%s</label></div>', CHtml::checkBox("privacy_for_field_{$i}", $model->public_profile_fields & $i), $i, Yum::t($field->title));
$i *= 2;
if ($counter % 4 == 0) {
示例2: if
<?
$this->pageTitle = Yii::app()->name . ' - '.Yum::t( "Profile");
$this->breadcrumbs=array(
Yum::t('Edit profile'));
$this->title = Yum::t('Edit profile');
?>
<div class="form">
<? echo CHtml::beginForm(); ?>
<? echo Yum::requiredFieldNote(); ?>
<? echo CHtml::errorSummary(array($user, $profile)); ?>
<? if(Yum::module()->loginType & 1) { ?>
<div class="row">
<? echo CHtml::activeLabelEx($user,'username'); ?>
<? echo CHtml::activeTextField($user,'username',array(
'size'=>20,'maxlength'=>20)); ?>
<? echo CHtml::error($user,'username'); ?>
</div>
<? } ?>
<? if(isset($profile) && is_object($profile))
$this->renderPartial('/profile/_form', array('profile' => $profile)); ?>
<div class="row buttons">
<?
if(Yum::module('profile')->enablePrivacySetting)