run() public method

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