Undefined variable: tree
kolexander opened this issue · comments
Здравствуйте.
Установил по инструкции
Захожу броузером:
Undefined variable: tree
- in /home/kolex/www/skeeks.local/frontend/templates/default/widgets/TreeMenuCmsWidget/menu-top.php
Как поправить ?
Добрый день. А по какой инструкции ставили? https://docs.cms.skeeks.com/en/latest/overview.html#installation - тут актуальная
по этой и ставил, единственное отличие что композер уже был установлен ранее, глобально
пропускал строки
curl -sS ...
запускал соответственно:
composer create-project --no-install --prefer-dist skeeks/app-basic skeeks.local
cd ./skeeks.local
composer global require fxp/composer-asset-plugin --no-plugins
composer install -o
./yii cms/init
./yii dbDumper/mysql/restore
. . .
ошибок при установке не было
единственный warning был:
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
php short_open_tag on ?
о, в этом было дело, пропустил,
спасибо за помощь и за отличную cms !
That was really BAD idea to use PHP short tags <?
instead of standard <?php
.
Even PSR-1 defines first thing for files at section 2.1 using standard <?php
or <?=
tags.
I would suggest correcting them acrosss all scripts ...
@lubosdz I agree with this. We will rule gradually.