1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* @var \hipanel\modules\hosting\models\Account $model |
5
|
|
|
* @var \yii\web\View $this |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
use yii\bootstrap\ActiveForm; |
9
|
|
|
use yii\helpers\Html; |
10
|
|
|
use yii\helpers\Url; |
11
|
|
|
|
12
|
|
|
?> |
13
|
|
|
<?php $form = ActiveForm::begin([ |
14
|
|
|
'options' => [ |
15
|
|
|
'id' => 'sgo-form', |
16
|
|
|
], |
17
|
|
|
'enableClientValidation' => true, |
18
|
|
|
'validateOnBlur' => true, |
19
|
|
|
'enableAjaxValidation' => true, |
20
|
|
|
'validationUrl' => Url::toRoute(['validate-sgo-form', 'scenario' => $model->scenario]), |
21
|
|
|
]) ?> |
22
|
|
|
<div class="row-md-6"> |
23
|
|
|
<?= Html::activeHiddenInput($model->values, "id") ?> |
|
|
|
|
24
|
|
|
<div class="row"> |
25
|
|
|
<div class="col-sm-6"> |
26
|
|
|
<?= $form->field($model->values, "port") ?> |
|
|
|
|
27
|
|
|
<?= $form->field($model->values, "global_apache_conf") ?> |
|
|
|
|
28
|
|
|
<?= $form->field($model->values, "global_nginx_conf") ?> |
|
|
|
|
29
|
|
|
<?= $form->field($model->values, "apache_conf") ?> |
|
|
|
|
30
|
|
|
<?= $form->field($model->values, "nginx_conf") ?> |
|
|
|
|
31
|
|
|
</div> |
32
|
|
|
<div class="col-sm-6"> |
33
|
|
|
<?= $form->field($model->values, "nginx_listen") ?> |
|
|
|
|
34
|
|
|
<?= $form->field($model->values, "domain_prefix") ?> |
|
|
|
|
35
|
|
|
<?= $form->field($model->values, "docroot_postfix") ?> |
|
|
|
|
36
|
|
|
<?= $form->field($model->values, "cgibin_postfix") ?> |
|
|
|
|
37
|
|
|
</div> |
38
|
|
|
</div> |
39
|
|
|
<?= $form->field($model->values, "no_suexec")->checkbox() ?> |
|
|
|
|
40
|
|
|
<?= $form->field($model->values, "allow_scripts")->checkbox() ?> |
|
|
|
|
41
|
|
|
<?= $form->field($model->values, "dont_enable_ssi")->checkbox() ?> |
|
|
|
|
42
|
|
|
</div> |
43
|
|
|
<hr> |
44
|
|
|
<?= Html::submitButton(Yii::t('hipanel', 'Save'), ['class' => 'btn btn-success']) ?> |
45
|
|
|
<?= Html::button(Yii::t('hipanel', 'Cancel'), ['class' => 'btn btn-default', 'data-dismiss' => 'modal']) ?> |
46
|
|
|
<?php $form::end() ?> |
47
|
|
|
|
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.