View Single Post
  #3  
Old 05-03-2012, 07:34 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Comment out unused code in template?

Comment it out. While deleting it may look like a cleaner solution leaving the code in there commented out will not hurt and as you said - it is there if you need it later. Smarty completely ignores anything commented out and it does not show in the html code as well. And use smarty comments {* *} not html comments <!-- -> - html comments will show in final html code.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote