Assuptions:
- WAMP install directory is 'd:\wamp'.
- PHP install directory is 'd:\wamp\bin\php\php.x.x.x'
- Download Smarty - http://www.smarty.net/
- Extract files, rename Smarty.x.x.x to smarty (suggest OUTSIDE of your www root!) Example: d:\wamp\bin\php\php.x.x.x\smarty
- Edit php.ini's include_path and add the location of the libs folder.
- example: include_path = ".;d:\wamp\bin\php\php.x.x.x\smarty\libs"
- Restart Apache Service
- Setup these two folders INSIDE your (www), 'd:\wamp\www\smarty\templates' (this is where your templates will go), 'd:\wamp\www\smarty\configs'.
- Setup these two folders OUTSIDE of your webroot: 'd:\wamp\bin\php\php.x.x.x\smarty\templates_c', 'd:\wamp\bin\php\php.x.x.x\smarty\cache'.
- Setup security settings for the web server to write to these four folders.
Note: Thanks to John Martinez for the tutorial.
No comments:
Post a Comment