Created
December 26, 2011 00:08
-
-
Save SpencerCooley/1520091 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Example Application | |
* @package Example-application | |
*/ | |
require('../libs/Smarty.class.php'); | |
$smarty = new Smarty; | |
//$smarty->force_compile = true; | |
$smarty->debugging = true; | |
$smarty->caching = true; | |
$smarty->cache_lifetime = 120; | |
$smarty->assign("Name","Spencer Cooley",true); | |
$smarty->assign("Intro","Hello Welcome to your Smarty application",true); | |
<!--This automatically looks for template files in the application's template directory--> | |
$smarty->display('index.tpl'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment