本文整理汇总了PHP中AdminHelper::blocsErrors方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminHelper::blocsErrors方法的具体用法?PHP AdminHelper::blocsErrors怎么用?PHP AdminHelper::blocsErrors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminHelper
的用法示例。
在下文中一共展示了AdminHelper::blocsErrors方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="form">
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'job-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>
<?php
echo $form->errorSummary(array_merge(AdminHelper::blocsErrors($blocs), array($model)));
?>
<?php
foreach (Yii::app()->languageManager->suffixes as $suffix) {
?>
<div class="row">
<?php
echo $form->labelEx($model, 'title' . $suffix);
?>
<?php
echo $form->textField($model, 'title' . $suffix, array('size' => 60, 'maxlength' => 255));
?>
<?php
echo $form->error($model, 'title' . $suffix);
?>
</div>
<?php
}
?>
<div class="row">
示例2: array
<div class="form">
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'contest-intro-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>
<?php
echo $form->errorSummary(AdminHelper::blocsErrors($blocs));
?>
<?php
$this->widget('application.widgets.AdminBlocsWidget', array('models' => $blocs, 'form' => $form));
?>
<div class="row buttons">
<?php
echo CHtml::submitButton(Yii::t('admin', 'Save'));
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- form -->
示例3: array
<div class="form">
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'content-page-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>
<?php
echo $form->errorSummary(array_merge(AdminHelper::blocsErrors($blocs), array($contentPage)));
?>
<?php
foreach (Yii::app()->languageManager->suffixes as $suffix) {
?>
<div class="row">
<?php
echo $form->labelEx($contentPage, 'title' . $suffix);
?>
<?php
echo $form->textField($contentPage, 'title' . $suffix, array('style' => 'width: 70%;'));
?>
<?php
echo $form->error($contentPage, 'title' . $suffix);
?>
</div>
<?php
}
?>
<fieldset class="separator">
示例4: array
<div class="form">
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'product-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>
<?php
echo $form->errorSummary(array_merge($productImages, AdminHelper::blocsErrors($productTab1), AdminHelper::blocsErrors($productTab2), array($product)));
?>
<?php
foreach (Yii::app()->languageManager->suffixes as $suffix) {
?>
<div class="row">
<?php
echo $form->labelEx($product, 'name' . $suffix);
?>
<?php
echo $form->textField($product, 'name' . $suffix, array('style' => 'width: 60%;'));
?>
<?php
echo $form->error($product, 'name' . $suffix);
?>
</div>
<?php
}
?>
<div class="row">