run() public method

This registers the necessary JavaScript code and renders the form close tag.
public run ( )
示例#1
1
 /**
  * (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);
 }
示例#2
0
 public function run()
 {
     parent::run();
     echo '</div>';
     if ($this->footer) {
         echo '<div class="panel-footer">' . $this->footer . '</div>';
     }
     echo '</div>';
 }
示例#3
0
 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
-1
 public function run()
 {
     parent::run();
     if ($this->append) {
         echo $this->append;
     }
 }
示例#5
-1
 /**
  * @inheritdoc
  */
 public function run()
 {
     parent::run();
     $view = $this->getView();
     ActiveFormAsset::register($view);
 }
示例#6
-1
 /**
  * Will show the Stripe's simple form modal
  */
 public function run()
 {
     parent::run();
     $this->registerFormScripts();
     if ($this->applyJqueryPaymentFormat || $this->applyJqueryPaymentValidation) {
         $this->registerJqueryPaymentScripts();
     }
 }