3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 364 Views |
-
How detect dev/live mode in template?

23 January 2012 at 3:46pm
Hi,
Is there a way to detect dev mode or live mode from within the template?
I'm trying to disable Google Analytics (not include JS) when in dev mode. Am I correct in assuming that for this case, it is best (from MVC perspective) to do it at the controller level, not template? Eg.
Director::isDev();
Director::isTest();
Director::isLive();Thanks.
VWD.
-
Re: How detect dev/live mode in template?

23 January 2012 at 10:27pm
You'll just need to wrap then in a function in the controller
-
Re: How detect dev/live mode in template?

23 January 2012 at 11:13pm
Of course - how simple!
So there aren't any in-built template tags.
Thanks Swaiba.
| 364 Views | ||
|
Page:
1
|
Go to Top |


