Location: PHPKode > scripts > Impleo Music Collection Script > impleo/classes/ImpleoTemplate.class.php
<?php
/* ----------------------------------------------------------------------------
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <hide@address.com> wrote this file. As long as you retain this notice you
 * can do whatever you want with this stuff. If we meet some day, and you think
 * this stuff is worth it, you can buy me a beer in return Christoffer Kjeldgaard Petersen
 * ----------------------------------------------------------------------------
 */

require_once(dirname(__FILE__) . '/../templates/Smarty/Smarty.class.php'); // Path to Smarty.class.php

/**
 * ImpleoTemplate class interacting with Smarty
 */
class ImpleoTemplate extends Smarty
{
	private $templateFile;
	
	public function __construct($fileName)
	{
		$this->template_dir = dirname(__FILE__) . '/../templates';
		$this->compile_dir = dirname(__FILE__) . '/../templates/templates_c';
		$this->templateFile = $fileName;
	}
	
    /**
     * Displays the specified template .tpl file.
     */
	public function displayTemplate()
	{
		$this->display($this->templateFile);
	}
}

?>
Return current item: Impleo Music Collection Script