Answer the question
In order to leave comments, you need to log in
Yii2 does not find the class and does not define variables, what could be the problem?
I have a Yii2 project that I'm trying to reproduce locally. I set everything up, when I open the main page of the site it gives out: Class 'Html' not found
Namespace is registered and working, PHPStorm does not highlight in any way:
View code:use yii\helpers\Html;
<li role="presentation" class="active">
<?= Html::a(
Html::tag('span', '', ['class' => 'gticon_palm2']) .
Html::tag('strong', Yii::t('app', 'Текст')),
'#tours', [
'aria-controls' => 'tours',
'role' => 'tab',
'data-toggle' => 'tab',
'title' => Yii::t('app', 'Текст'),
'class' => 'js-typing-update',
'data-typing-static' => Yii::t('app', 'Заголовок'),
'data-typing-dynamic' => Yii::t('app', 'текст')
]
) ?>
</li>
= yii\helpers\Html::a(Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question