run() 공개 메소드

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
파일: ActiveForm.php 프로젝트: vfokov/tims2
 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
파일: ActiveForm.php 프로젝트: nagser/base
 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();
     }
 }