Why use Smarty?
Posted: Thu Oct 23, 2008 4:22 pm
Why use Smarty Engine ?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Last updated in 2003. That's a little disconcerting.PCSpectra wrote:Google bTemplate and read that. It does the same thing at a fraction of the cost -- both in learning curve and execution speed.
Why? It's principle and practice remains the same today as it did back then.Last updated in 2003. That's a little disconcerting.
Well, it'll have been written for PHP 4.2 at the latest, there'll be no unit tests, there'll be 5 years worth of potentially unpatched holes and exploits, and any bugs or missing features definitely won't be added by the original author. It was only at version 0.3 at the last change, which may well work ok but it's far from a stable major release.PCSpectra wrote:Why? It's principle and practice remains the same today as it did back then.
I see. You dissecting it way more than I did. I was simply looking at it from the most basic implementation like follows:Well, it'll have been written for PHP 4.2 at the latest, there'll be no unit tests, there'll be 5 years worth of potentially unpatched holes and exploits, and any bugs or missing features definitely won't be added by the original author. It was only at version 0.3 at the last change, which may well work ok but it's far from a stable major release.
Code: Select all
ob_start();
include($file_to_template);
$buff = ob_get_contents();
ob_end_clean();
return $buff;
Agreed. I didn't really assume anyone would use bTemplate itself as it's so simple in it's basic form (like I show above) I figured most would just develop their own specific to their needs.I'm not saying it's unusable or it won't do the job. I'm saying it's disconcerting to use software that's apparently been abandoned in case there are problems. I like the idea of there being some sort of support if absolutely necessary