Response WIP

This commit is contained in:
Qiang Xue
2013-06-09 09:47:41 -04:00
parent cf1e12ad11
commit f2d477dce6
15 changed files with 276 additions and 141 deletions

View File

@ -13,6 +13,9 @@ namespace yii\base;
*/
class Response extends Component
{
const EVENT_BEGIN_RESPONSE = 'beginResponse';
const EVENT_END_RESPONSE = 'endResponse';
/**
* Starts output buffering
*/
@ -56,4 +59,14 @@ class Response extends Component
ob_end_clean();
}
}
public function begin()
{
$this->trigger(self::EVENT_BEGIN_RESPONSE);
}
public function end()
{
$this->trigger(self::EVENT_END_RESPONSE);
}
}