function diedumpc($data, $depth = null) { if (!enableDebug()) { return; } while (@ob_end_clean()) { continue; } die(dumpc($data, $depth)); }
public function send() { static $count = 0; $this->mail->Subject = $this->subject; $this->mail->MsgHTML($this->getMsgHtml()); if ($this->txtmsg) { $this->mail->AltBody = $this->wrapContent($this->scenario . '_txt', array('title' => $this->subject, 'msg' => $this->txtmsg)); } if (constant('YII_DEBUG')) { $count++; // dont spam so much if ($count < 5) { dump($this->mail, 4, true); } } $this->mail->Send(); Yii::log($this->getMsgHtml() . '<hr />' . dumpc($this->mail, 3, true), 'info', "email"); //die($this->getMsgHtml()); return $this; }