This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

getriebesand17522
getriebesand17522

is there a way to find out if debug mode is on? Like {% if isDebug %} or so?

I want to display some debug messages but want to hide them on live site.

Tschallacka
Tschallacka

In the php segment, before you enter twig, you can put this in a variable.

app('config')->get('app.debug')

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.