skeeks-cms / app-basic

Base app on SkeekS CMS (Yii2)
http://cms.skeeks.com
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

error #2

Closed ivantree closed 7 years ago

ivantree commented 7 years ago

PHP Notice – yii\base\ErrorException

Undefined variable: tree

  1. in C:\wamp64\demo.ru\frontend\templates\default\widgets\TreeMenuCmsWidget\menu-top.php

  • Главная
  •     <? 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">
    pavlm commented 6 years ago

    Тоже получил эту ошибку. Чтобы исправить надо включить короткие теги: short_open_tag = On