A
A
alysenko2017-03-21 17:07:47
Yii
alysenko, 2017-03-21 17:07:47

ActiveForm Yii2 not working on hosting?

Faced such a problem: forms in ActiveForm in Yii2 do not work on the hosting. Locally on Windows everything works fine. On the hosting the same code as locally. Initially, everything worked fine on the hosting.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2017-03-21
@bloodmoonshard

Can you log? php, apache

A
alysenko, 2017-03-21
@alysenko

var_dump form:

object(yii\widgets\ActiveForm)#179 (30) {
  ["action"]=>
  string(0) ""
  ["method"]=>
  string(4) "post"
  ["options"]=>
  array(2) {
    ["enctype"]=>
    string(19) "multipart/form-data"
    ["id"]=>
    string(16) "form-edit-report"
  }
  ["fieldClass"]=>
  string(23) "yii\widgets\ActiveField"
  ["fieldConfig"]=>
  array(0) {
  }
  ["encodeErrorSummary"]=>
  bool(true)
  ["errorSummaryCssClass"]=>
  string(13) "error-summary"
  ["requiredCssClass"]=>
  string(8) "required"
  ["errorCssClass"]=>
  string(9) "has-error"
  ["successCssClass"]=>
  string(11) "has-success"
  ["validatingCssClass"]=>
  string(10) "validating"
  ["enableClientValidation"]=>
  bool(true)
  ["enableAjaxValidation"]=>
  bool(false)
  ["enableClientScript"]=>
  bool(true)
  ["validationUrl"]=>
  NULL
  ["validateOnSubmit"]=>
  bool(true)
  ["validateOnChange"]=>
  bool(true)
  ["validateOnBlur"]=>
  bool(true)
  ["validateOnType"]=>
  bool(false)
  ["validationDelay"]=>
  int(500)
  ["ajaxParam"]=>
  string(4) "ajax"
  ["ajaxDataType"]=>
  string(4) "json"
  ["scrollToError"]=>
  bool(true)
  ["scrollToErrorOffset"]=>
  int(0)
  ["attributes"]=>
  array(0) {
  }
  ["_fields":"yii\widgets\ActiveForm":private]=>
  array(0) {
  }
  ["_id":"yii\base\Widget":private]=>
  string(16) "form-edit-report"
  ["_view":"yii\base\Widget":private]=>
  NULL
  ["_events":"yii\base\Component":private]=>
  array(0) {
  }
  ["_behaviors":"yii\base\Component":private]=>
  NULL
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question