Location: PHPKode > projects > Php simple acces data mysql > phpsimpledb_v2/includes/smarty/smart_site.php
<?php
	// charge la librairie Smarty
	require('Smarty.class.php');
	class smarty_site extends Smarty {
		
		 function smarty_site() {
			global $oLang;

			$this->Smarty();

			$this->template_dir = PATH_BASE.'templates'.DIRECTORY_SEPARATOR.TEMPLATE_NAME.DIRECTORY_SEPARATOR;
			$this->compile_dir = PATH_BASE.'templates'.DIRECTORY_SEPARATOR.TEMPLATE_NAME.DIRECTORY_SEPARATOR.'templates_c'.DIRECTORY_SEPARATOR;
			$this->config_dir = PATH_BASE.'templates'.DIRECTORY_SEPARATOR.TEMPLATE_NAME.DIRECTORY_SEPARATOR.'configs'.DIRECTORY_SEPARATOR;
			$this->cache_dir = PATH_BASE.'templates'.DIRECTORY_SEPARATOR.TEMPLATE_NAME.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR;
			$this->caching = true;
			//$this->assign('app_name', 'Guest Book');
			$this->assign('oLang', $oLang );
		 }
	}
?>
Return current item: Php simple acces data mysql