Location: PHPKode > projects > DIY Blog > diy-blog/classes/diy-blog/backend/view/admin/AdminView.class.php
<?php

/**
 * Administration frontpage view.
 * @package diy-blog.backend.view.admin
 * @author	Martynas Jusevicius <hide@address.com>
 * @link	http://www.xml.lt
 */

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

		$this->template->load(APP_VIEW_DIR."admin/Admin.xsl");
	}

	function display(Request $request, Response $response)
	{
		if ($request->getAttribute("login-result") != null)
		{
			$this->proc->setParameter("", "login-result", $request->getAttribute("login-result"));
			$this->resolver->setArgument("login-errors", XMLSerializer::serialize($request->getAttribute("login-errors")));
			$this->resolver->setArgument("login-form", XMLSerializer::serialize($request->getAttribute("login-form")));
		}

		parent::display($request, $response);
		$response->setStatus(Response::SC_OK);
	}

}

?>
Return current item: DIY Blog