Location: PHPKode > projects > Nella Framework > nella-framework-7e780c6/Nella/Application/UI/Presenter.php
<?php
/**
 * This file is part of the Nella Framework (http://nellafw.org).
 *
 * Copyright (c) 2006, 2012 Patrik Votoček (http://patrik.votocek.cz)
 *
 * For the full copyright and license information, please view the file LICENSE.txt that was distributed with this source code.
 */

namespace Nella\Application\UI;

/**
 * Application base presenter
 *
 * @author	Patrik Votoček
 */
abstract class Presenter extends \Nette\Application\UI\Presenter
{
	/**
	 * @return \Nella\Templating\ITemplateFilesFormatter
	 */
	public function getTemplateFilesFormatter()
	{
		return $this->getContext()->nella->templateFilesFormatter;
	}

	/**
	 * @return array
	 */
	public function formatLayoutTemplateFiles()
	{
		return $this->getTemplateFilesFormatter()->formatLayoutTemplateFiles(
			$this->getName(), $this->getLayout() ? $this->getLayout() : 'layout'
		);
	}

	/**
	 * @return array
	 */
	public function formatTemplateFiles()
	{
		return $this->getTemplateFilesFormatter()->formatTemplateFiles($this->getName(), $this->getView());
	}

}
Return current item: Nella Framework