DevelopmentMode check in layout

Notice: This thread is very old.
pistols
Member | 26
+
0
-

Hi,

I need an easy way how to do this in my @layout.latte file

<html>
<body>
{if !debugMode}<h1>You are on the production server, don't do anything stupid!!!</h1>{/if}
... next best app ever
</body>
<html>

Thanks in advance

Šaman
Member | 2659
+
0
-

Development mode does not mean you are not on production server. Use config.local.neon instead.
Create parameter and read it in BasePresenter, then you can acccess it in all apliccation.

Last edited by Šaman (2014-05-21 16:07)