First copy the downloaded smarty folder into your project root directory. Then goto that smarty folder, create a php file (ex: smarty.php) & paste these following codes: <?php/* This is a class defination for accessing smarty. */ require(”C:/apache2triad/htdocs/project/smarty/libs/Smarty.class.php”);class Template extends Smarty { function Template() { $this->Smarty(); //setting up smarty template directory $this->template_dir=’c:/apache2triad/htdocs/project/templates/’; //setting up smarty [...]
Archive for the ‘Smarty’ Category
SMARTY: Template Engine
March 3, 2008Installing SMARTY in Windows
March 3, 2008Installing Smarty in Windows This document assumes that your webserver and php5 is running. Download Smarty – http://smarty.php.net Installation – Windows, IIS/Apache, PHP5 Extract files, rename Smarty.x.x.x to smarty (suggest OUTSIDE of your www root!) Example: d:smarty Run phpinfo.php to find out your php.ini location Edit php.ini’s include_path and add the location of the libs [...]