本文整理匯總了PHP中H::hiddenField方法的典型用法代碼示例。如果您正苦於以下問題:PHP H::hiddenField方法的具體用法?PHP H::hiddenField怎麽用?PHP H::hiddenField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類H
的用法示例。
在下文中一共展示了H::hiddenField方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
?>
<div class="form">
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'argroupon-create-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false), 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>
<p class="note">帶 <span class="required">*</span> 為必填項 .</p>
<?php
echo $form->errorSummary($model);
?>
<?php
$this->widget('bootstrap.widgets.TbTabs', array('type' => 'tabs', 'placement' => 'above', 'tabs' => array(array('label' => '基本信息', 'content' => $this->renderPartial('_form_base', array('model' => $model, 'form' => $form), true), 'active' => true), array('label' => '分類信息', 'content' => $this->renderPartial('_form_cate', array('model' => $model, 'form' => $form), true)), array('label' => '價格信息', 'content' => $this->renderPartial('_form_price', array('model' => $model, 'form' => $form), true)), array('label' => '數量信息', 'content' => $this->renderPartial('_form_number', array('model' => $model, 'form' => $form), true)), array('label' => '時間信息', 'content' => $this->renderPartial('_form_time', array('model' => $model, 'form' => $form), true)))));
?>
<?php
echo H::hiddenField('return_url', Yii::app()->request->urlReferrer);
?>
<div class="form-actions">
<?php
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->isNewRecord ? '創建' : '修改'));
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- form -->