Download Smarty template engine..
In your project directory, create 4 directories
1. cache
2. configs
3. templates - places your tempalete file here (.tpl)
5. templates_c
In your php file that need transfer data to template file, use include the smarty class file
require("../libs/Smarty.class.php");
$smarty = new Smarty();
No comments:
Post a Comment