Z
Z
ZaurK2018-03-25 15:36:00
Yii
ZaurK, 2018-03-25 15:36:00

Where did the debugger disappear?

Greetings! Installed via composer yii2 advanced, everything would be fine, but I can’t understand where the debugger has gone at the bottom of the page, like before when I installed yii2 it was always ... Should it be by default or has something changed? I googled but didn't solve the problem, please help me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
ZaurK, 2018-03-25
@ZaurK

I solved the problem, it turns out that there was not a very successful .htaccess in both web folders. Replaced them with

# Mod_Autoindex
<IfModule mod_autoindex.c>
  # Запрещаем просмотр содержимого папок
  Options -Indexes
</IfModule>

# Mod_Rewrite
<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  # Включаем mod_rewrite
  RewriteEngine On

  # Если это папка или файл, открываем её/его
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  # В противном случае перенаправляем на index.php
  RewriteRule . index.php
</IfModule>

and the debugger appeared :)

M
mitaichik, 2018-03-25
@mitaichik

By default, the debugger is enabled only when YII_ENV = dev. When installing yii, you could choose prod.
Check the configs - there in main-local it should be connected below as a separate module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question