Location: PHPKode > projects > DIY Blog > diy-blog/classes/diy-blog/frontend/view/notFound/NotFoundView.class.php
<?php

/**
 * Displayed when requested Resource is not found.
 * @package diy-blog.frontend.view.notFound
 * @author	Martynas Jusevicius <hide@address.com>
 * @link	http://www.xml.lt
 */

class NotFoundView extends FrontEndView
{

	public function __construct(Resource $resource = null)
	{
		parent::__construct($resource);

		$this->template->load(APP_VIEW_DIR."notFound/NotFound.xsl");
	}

	public function display(Request $request, Response $response)
	{
		$xml = "<?xml version=\"1.0\"?><NotFound/>";
		$this->doc->loadXML($xml);

		parent::display($request, $response);

		$response->setStatus(Response::SC_NOT_FOUND);
	}
}
Return current item: DIY Blog