how to install smarty

how to install smarty

Posted by: jt22571
Posted on: 2006-08-13 12:59:00

its a simple question but seems i couldn't find any info on the forum. how do i install smarty on dreamhost? i did locate the php include path but how could i put smarty class files in that dir?

Thanks

Re: how to install smarty

Posted by: rdejel
Posted on: 2006-08-14 09:52:00

Here's what I did to install Smarty:

1) Copied Smarty files into /home/[username]/smarty/
2) Added this piece of code to each of my PHP files:

ini_set( 
'include_path',
ini_get( 'include_path' ) . PATH_SEPARATOR . "/home/[username]/smarty"
);

3) Create templates, templates_c, cache, and configs directories in root directory for each website using Smarty.

Tags: smartyphp includedreamhostpath