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

/**
 * Page view.
 * @package diy-blog.frontend.view.pageRead
 * @author	Martynas Jusevicius <hide@address.com>
 * @link	http://www.xml.lt
 */

class ReadPageView extends FrontEndView
{
	public function __construct(Resource $resource = null)
	{
		parent::__construct($resource);

		$this->template->load(APP_VIEW_DIR."pageRead/ReadPage.xsl");
	}

	function display(Request $request, Response $response)
	{
		$page = $this->resource->getPagesJoinBackEndResource();
		$page = $page[0];

		$this->resolver->setArgument("page", XMLSerializer::serialize($page));

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

		$response->setStatus(Response::SC_OK);
	}

}

?>
Return current item: DIY Blog