Issues (75)

resources/views/site/contact.php (1 issue)

Severity
1
<?php
2
use yii\bootstrap\ActiveForm;
3
use yii\bootstrap\Html;
4
use yii\captcha\Captcha;
5
6
/* @var $this yii\web\View */
7
/* @var $form yii\bootstrap\ActiveForm */
8
/* @var $model \frontend\models\ContactForm */
9
10
$this->title = Yii::t('app', 'Contact Us');
11
$this->params['breadcrumbs'][] = $this->title;
12
?>
13
<div class="site-contact">
14
    <h1><?= Html::encode($this->title) ?></h1>
15
</div>
16
17
    <p>
18
        If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
19
    </p>
20
21
<div class="row">
22
    <div class="col-lg-6">
23
        <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
24
25
            <?= $form->field($model, 'name')->textInput(['autofocus' => true]) ?>
26
27
            <?= $form->field($model, 'email') ?>
28
29
            <?= $form->field($model, 'subject') ?>
30
31
            <?= $form->field($model, 'body')->textarea(['rows' => 6]) ?>
32
33
            <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
0 ignored issues
show
Deprecated Code introduced by
The function yii\base\BaseObject::className() has been deprecated: since 2.0.14. On PHP >=5.5, use `::class` instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

33
            <?= $form->field($model, 'verifyCode')->widget(/** @scrutinizer ignore-deprecated */ Captcha::className(), [

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
34
                'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
35
            ]) ?>
36
37
            <div class="form-group">
38
                <?= Html::submitButton('Submit', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
39
            </div>
40
41
        <?php ActiveForm::end(); ?>
42
    </div>
43
</div>