Closed ivantree closed 7 years ago
PHP Notice – yii\base\ErrorException
Undefined variable: tree
Главная
<? if ($trees = $widget->activeQuery->all()) : ?> <? foreach ($trees as $tree) : ?> <?= $this->render("_one", [ "widget" => $widget, "model" => $tree, ]); ?> <? endforeach; ?> <? endif; ?> <!--<li class="dropdown dropdown-aux animate-click" data-animate-in="animated bounceInUp" data-animate-out="animated fadeOutDown" style="z-index:500;"> <a href="#" class="dropdown-form-toggle" data-toggle="dropdown"><i class="fa fa-search"></i></a> <ul class="dropdown-menu dropdown-menu-user animate-wr"> <li id="dropdownForm"> <div class="dropdown-form">
Тоже получил эту ошибку. Чтобы исправить надо включить короткие теги: short_open_tag = On
short_open_tag = On
PHP Notice – yii\base\ErrorException
Undefined variable: tree