Location: PHPKode > projects > Anchor CMS > anchor-cms-0.9.1/anchor/libraries/response.php
<?php

class Response extends System\Response {

	public function send() {
		if(Config::db('profiling')) {
			$profile = View::create('profile', array('profile' => DB::profile()))->yield();

			$this->output = preg_replace('#</body>#', $profile . '</body>', $this->output);
		}

		return parent::send();
	}

}
Return current item: Anchor CMS