for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nip\View;
use Nip\View;
class XML extends View
{
public function load($view = false, $variables = array(), $return = false)
header('Content-type: text/xml');
return parent::load($view, $variables, $return);
}
/**
* Singleton
*
* @return self
*/
public static function instance()
static $instance;
if (!($instance instanceof self)) {
$instance = new self();
return $instance;