public function pushResult() { if (self::$_finish) { return; } self::$_finish = true; ob_end_clean(); echo $this->getReturn(); }
<?php define('__MODEL_NAME__', 'test'); require_once 'boot.php'; $ajax = new Common_Ajax(); $ajax->setResult('data', array('key' => 'love')); $ajax->setResult('status', 0);