本文整理汇总了PHP中yii\widgets\ActiveForm::run方法的典型用法代码示例。如果您正苦于以下问题:PHP ActiveForm::run方法的具体用法?PHP ActiveForm::run怎么用?PHP ActiveForm::run使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\widgets\ActiveForm
的用法示例。
在下文中一共展示了ActiveForm::run方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
public function run()
{
parent::run();
if ($this->append) {
echo $this->append;
}
}
示例2: run
public function run()
{
parent::run();
echo '</div>';
if ($this->footer) {
echo '<div class="panel-footer">' . $this->footer . '</div>';
}
echo '</div>';
}
示例3: run
public function run()
{
parent::run();
if (!isset($this->options['id'])) {
$this->options['id'] = $this->getId();
}
if ($this->beforeSubmit) {
$id = $this->options['id'];
$view = $this->getView();
$view->registerJs("jQuery('#{$id}').on('beforeSubmit', function() { return " . $this->beforeSubmit . "(this); });");
}
}
示例4: run
/**
* @inheritdoc
*/
public function run()
{
parent::run();
$view = $this->getView();
ActiveFormAsset::register($view);
}
示例5: run
/**
* (non-PHPdoc)
* @see \yii\widgets\ActiveForm::run()
*/
public function run()
{
parent::run();
Pjax::end();
if (!isset($this->template)) {
$this->createDefaultTemplate();
}
echo $this->render('template/footer', ['formModel' => $this->formModel, 'templateController' => $this->_module->templateController, 'displayedAttributes' => $this->displayedAttributes, 'fieldNames' => $this->template->fields, 'submitTitle' => $this->submitTitle]);
Pjax::begin(['id' => 'template-panel-pjax']);
echo $this->templatesPanel();
Pjax::end();
Pjax::end();
FlexibleFormAsset::register($this->view);
}
示例6: run
/**
* Will show the Stripe's simple form modal
*/
public function run()
{
parent::run();
$this->registerFormScripts();
if ($this->applyJqueryPaymentFormat || $this->applyJqueryPaymentValidation) {
$this->registerJqueryPaymentScripts();
}
}