Yii Framework Forum: Enhance Cvardumper Logic To Detect Running Form Console - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Enhance Cvardumper Logic To Detect Running Form Console Rate Topic: -----

#1 User is offline   realtebo 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 621
  • Joined: 03-October 12
  • Location:Ferrara

Posted 12 February 2013 - 05:14 AM

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 !?!?
Il computer non ragiona, ma ha sempre ragione.
Ricordalo quando fai il debug
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users