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? Link to comment https://forums.phpfreaks.com/topic/89405-solved-php-templates/ 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? Link to comment https://forums.phpfreaks.com/topic/89405-solved-php-templates/#findComment-457909 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. Link to comment https://forums.phpfreaks.com/topic/89405-solved-php-templates/#findComment-457916 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 Link to comment https://forums.phpfreaks.com/topic/89405-solved-php-templates/#findComment-457920 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 Link to comment https://forums.phpfreaks.com/topic/89405-solved-php-templates/#findComment-457921 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. Link to comment https://forums.phpfreaks.com/topic/89405-solved-php-templates/#findComment-457990 Share on other sites More sharing options...
phorcon3 Posted February 4, 2008 Author Share Posted February 4, 2008 thanks for the info;) Link to comment https://forums.phpfreaks.com/topic/89405-solved-php-templates/#findComment-458086 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.