phorcon3 Posted February 4, 2008 Share Posted February 4, 2008 could someone please tell me the advantage of using a template engine (such as Smarty) versus having all the code + design in just one file? Quote Link to comment Share on other sites More sharing options...
phorcon3 Posted February 4, 2008 Author Share Posted February 4, 2008 would templates ...integratin a template engine into ur website enhance ur websites performance? Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 4, 2008 Share Posted February 4, 2008 I think Smarty makes a pretty good stand on their site: http://www.smarty.net/whyuse.php The big thing, is it allows separation of the 'php programming' and the 'design'. If you are doing everything, it may not be worth your while. But if you are running a project with separate php coders and designers, it will probably make things easier to manage. Quote Link to comment Share on other sites More sharing options...
phorcon3 Posted February 4, 2008 Author Share Posted February 4, 2008 i just thought there may be other advantages ..performance wise.. but i guess not lol thanks Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 4, 2008 Share Posted February 4, 2008 it does have some caching mechanisms, but i think they are more for speeding up the extra layer processing needed... but i'm not very confident in that answer...others more familiar with smarty, please correct me Quote Link to comment Share on other sites More sharing options...
obsidian Posted February 4, 2008 Share Posted February 4, 2008 it does have some caching mechanisms, but i think they are more for speeding up the extra layer processing needed... but i'm not very confident in that answer...others more familiar with smarty, please correct me The technique behind using a template is definitely not for speeding up processing time. It is really for speeding up development time. Rhodesa, your comment is correct in that the caching mechanisms within Smarty allow for caching and eve setting up cache timers in order to speed up the process, but you still have the layer of Smarty to contend with. As far as large templating engines are concerned, I love Smarty, but it is like trying to wield an 8000 lb gorilla at times. It does a TON more than most people would use it for. Quote Link to comment Share on other sites More sharing options...
phorcon3 Posted February 4, 2008 Author Share Posted February 4, 2008 thanks for the info;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.