skeeks-cms / cms

SkeekS CMS (Yii2)
https://cms.skeeks.com
BSD 3-Clause "New" or "Revised" License
136 stars 65 forks source link

error installing cms #62

Closed masihfathi closed 7 years ago

masihfathi commented 7 years ago

hi and really thanks for your great work, when i install cms in localhost i got the below error when i run project(http://localhost/demo.ru/frontend/web/):

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; ?>
skeeks-semenov commented 7 years ago

hi. php setting short_open_tag on?

masihfathi commented 7 years ago

how can i do this in a sharing host?