Posted By

mzym on 09/22/09


Tagged

php Smarty kickstart


Versions (?)

Smarty Defaults


 / Published in: PHP
 

  1. ini_set('include_path',ini_get('include_path').':./libs:');
  2.  
  3. $base = "/WWWROOT/htdocs/";
  4.  
  5. define('SMARTY_DIR',$base.'/libs/');
  6. require(SMARTY_DIR.'Smarty.class.php');
  7. $smarty = new Smarty;
  8.  
  9.  
  10. $smarty->template_dir = $base.'/smarty/templates/';
  11. $smarty->compile_dir = $base.'/smarty/templates_c/';
  12. $smarty->config_dir = $base.'/smarty/configs/';
  13. $smarty->cache_dir = $base.'/smarty/cache/';
  14.  
  15. $smarty->assign("wut",$wut);

Report this snippet  

You need to login to post a comment.