itstructure /
yii2-template-simple
| 1 | <?php |
||||
| 2 | use yii\helpers\Html; |
||||
| 3 | use yii\bootstrap\ActiveForm; |
||||
| 4 | use yii\captcha\Captcha; |
||||
| 5 | use app\models\{Contact, Feedback}; |
||||
| 6 | |||||
| 7 | /* @var Contact $model */ |
||||
| 8 | /* @var Feedback $feedback */ |
||||
| 9 | |||||
| 10 | $this->params['breadcrumbs'][] = $model->title; |
||||
| 11 | ?> |
||||
| 12 | |||||
| 13 | <section class="contacts_block"> |
||||
| 14 | |||||
| 15 | <!-- MAP --> |
||||
| 16 | <div id="map" class="full_width"> |
||||
| 17 | <iframe width="100%" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" |
||||
| 18 | src="https://maps.google.com/maps?f=q&give a hand=s_q&hl=<?php echo Yii::$app->language; ?>&q=<?php echo $model->mapQ; ?>&ie=UTF8&z=<?php echo $model->mapZoom; ?>&output=embed"></iframe> |
||||
| 19 | </div><!-- //MAP --> |
||||
| 20 | |||||
| 21 | <div class="container"> |
||||
| 22 | |||||
| 23 | <div class="row"> |
||||
| 24 | <div class="col-lg-7 col-sm-7 padbot20" data-animated="fadeIn"> |
||||
| 25 | <h2><?php echo Yii::t('contacts', 'Get in Touch') ?></h2> |
||||
| 26 | |||||
| 27 | <?php if (Yii::$app->session->hasFlash('contactFormSubmitted')): ?> |
||||
|
0 ignored issues
–
show
|
|||||
| 28 | |||||
| 29 | <div class="alert alert-success alert-dismissable"> |
||||
| 30 | <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
||||
| 31 | <?php echo Yii::t('feedback', 'You have successfully sent your message.'); ?> |
||||
| 32 | </div> |
||||
| 33 | |||||
| 34 | <?php if (Yii::$app->mailer->useFileTransport): ?> |
||||
|
0 ignored issues
–
show
|
|||||
| 35 | <p>Because the application is in development mode, the email is not sent but saved as a file under <code><?php echo Yii::getAlias(Yii::$app->mailer->fileTransportPath) ?></code>. Please configure the <code>useFileTransport</code> property of the <code>mail</code> application component to be false to enable email sending.</p> |
||||
|
0 ignored issues
–
show
Are you sure
Yii::getAlias(Yii::app->...ler->fileTransportPath) of type false|string can be used in echo?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 36 | <?php endif; ?> |
||||
| 37 | |||||
| 38 | <?php else: ?> |
||||
| 39 | |||||
| 40 | <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> |
||||
| 41 | |||||
| 42 | <?php echo $form->field($feedback, 'name')->textInput(['autofocus' => true])->label(Yii::t('feedback', 'Name')) ?> |
||||
| 43 | |||||
| 44 | <?php echo $form->field($feedback, 'email')->textInput(['autofocus' => true])->label(Yii::t('feedback', 'Email')) ?> |
||||
| 45 | |||||
| 46 | <?php echo $form->field($feedback, 'subject')->textInput(['autofocus' => true])->label(Yii::t('feedback', 'Subject')) ?> |
||||
| 47 | |||||
| 48 | <?php echo $form->field($feedback, 'message')->textarea(['rows' => 6])->label(Yii::t('feedback', 'Message')) ?> |
||||
| 49 | |||||
| 50 | <?php echo $form->field($feedback, 'verifyCode')->widget(Captcha::class, [ |
||||
| 51 | 'captchaAction' => '/contact/captcha', |
||||
| 52 | 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>', |
||||
| 53 | ])->label(Yii::t('feedback', 'Verify code')) ?> |
||||
| 54 | |||||
| 55 | <div class="form-group"> |
||||
| 56 | <?php echo Html::submitButton(Yii::t('app', 'Send'), [ |
||||
| 57 | 'class' => 'btn btn-primary', |
||||
| 58 | 'name' => 'contact-button' |
||||
| 59 | ]) ?> |
||||
| 60 | </div> |
||||
| 61 | |||||
| 62 | <?php ActiveForm::end(); ?> |
||||
| 63 | |||||
| 64 | <?php endif; ?> |
||||
| 65 | |||||
| 66 | </div> |
||||
| 67 | <div class="col-lg-5 col-sm-5 padbot20" data-animated="fadeIn"> |
||||
| 68 | <h2><?php echo Yii::t('contacts', 'Communication') ?></h2> |
||||
| 69 | |||||
| 70 | <ul> |
||||
| 71 | <?php if (!empty($model->address)): ?> |
||||
| 72 | <li><b class="fa fa-home"></b> <span> <?php echo $model->address ?></span></li> |
||||
| 73 | <?php endif; ?> |
||||
| 74 | <?php if (!empty($model->phone)): ?> |
||||
| 75 | <li><b class="fa fa-phone"></b> <span> <?php echo $model->phone ?></span></li> |
||||
| 76 | <?php endif; ?> |
||||
| 77 | <?php if (!empty($model->email)): ?> |
||||
| 78 | <li><b class="fa fa-envelope-o"></b> <span><a href="mailto:<?php echo $model->email ?>"> <?php echo $model->email ?></a></span></li> |
||||
| 79 | <?php endif; ?> |
||||
| 80 | |||||
| 81 | <?php if (is_array($model->social)): ?> |
||||
| 82 | <?php foreach ($model->social as $social): ?> |
||||
| 83 | <li> |
||||
| 84 | <b class="<?php echo $social->icon ?>"></b> |
||||
| 85 | <span><a href="<?php echo $social->url ?>" target="_blank" ><?php echo $social->url ?></a></span> |
||||
| 86 | </li> |
||||
| 87 | <?php endforeach; ?> |
||||
| 88 | <?php endif; ?> |
||||
| 89 | </ul> |
||||
| 90 | </div> |
||||
| 91 | </div> |
||||
| 92 | </div> |
||||
| 93 | </section> |
||||
| 94 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.