In case you don't know, I am talking about programming. Smarty is a PHP template used to separate logic and layout so 'hopefully' programmers don't have to worry about design, and designers don't have to worry about coding.
The Need for Speed
Well, after downloading Smarty and installing it 'offline' I am starting to figure out what this thing do. It said it is faster than else...Yeah right. To be honest, I don't know if it is faster than pure coding or not since I haven't tried it yet. Maybe it is in fact fast, because it caches files into templates_c which is the directory for cache files.
Can You Separate Oil and Water?
In this case, not yet. It is true that Smarty can help to separate templates and php files, but not coding intirely. You can see that Smarty has {if}, {foreach}, etc. Complete separation? I don't think so. Maybe not yet. Maybe you can separate oil from water with a soap. Or maybe not.
Damn Header Already Sent Error
The first thing I notice when running Smarty online is the annoying error 'header already sent'. Fortunately it is easily fix by adding .htaccess on your web root to activate output buffering.
Well that's for now. I'll report more later on. Thanks for reading.
Tuesday, July 22, 2008
Smarty ain't Smart Enough
Labels: Programming, Smarty
Posted by xpressioniz at 9:46 AM