Skip to content

Instantly share code, notes, and snippets.

@SpencerCooley
Created December 26, 2011 00:08
Show Gist options
  • Save SpencerCooley/1520091 to your computer and use it in GitHub Desktop.
Save SpencerCooley/1520091 to your computer and use it in GitHub Desktop.
<?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