I use the CVarDumper in some components that will be used both from webapp and from consoleapp
In webapp i'd like to see colored dump, so I used to set 'true' the third option of dump() method.
In consoleapp, it show a useless list of html tag to color the text.
Is it possible to enhance CVarDumper so, if PHP_SAPI == 'cli', the 'true' option is automagically ignored !?!?
Page 1 of 1
Enhance Cvardumper Logic To Detect Running Form Console
#1
Posted 12 February 2013 - 05:14 AM
Il computer non ragiona, ma ha sempre ragione.
Ricordalo quando fai il debug
Ricordalo quando fai il debug
Share this topic:
Page 1 of 1

Help












