The problem with Smarty
| From: | Peter Bowyer | Date: | Sun, 17 Feb 2002 08:59:35 +0000 |
| Subject: | The problem with Smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2702@lists.php.net to get a copy of this message | ||
Hi,
Now I'm not knocking the Smarty template engine, as I know how good it is to use, and how well written it is. With that proviso in mind, read on...
I would love to convert my open source scripts such as sendcard to using Smarty. The problem is that Smarty requires a relatively high level of technical knowledge to get it working. With phpLib templates the end user doesn't have to do anything - they just run the script that includes the template class and it works. With Smarty, a minimum of 5 paths need modifying in Smarty.class.php and two folders need chmoding. Also, with Smarty the question arises as to whether it's better to have one central installation or many separate ones distributed with the script. The latter is obviously easier to set up, but with the amount of disk space that Smarty occupies (compared with, say, phpLib's templates) the former makes more sense.
Has anyone any suggestions as to how to get round these two problems (short of telling the newbie users to b***er off)? For Smarty to become more widespread I feel that an easier installation system will have to be devised - quite how I don't know. Even if it was distributed with PEAR the paths would still have to be changed (./cache, ./templates_c etc don't work for me - they make a separate folder in the directory containing my PHP scripts - and this is using require_once).
Regards,
Peter.
---oOo---
sendcard - *The* PHP e-card solution
http://sendcard.sf.net
---oOo---