Damon,
Commenting out code in templates using
Smarty comments has worked flawlessly for me. I have, like you, run into situations where I've gotten a
Blank Page when I've done that. Usually it's been because I've unbalanced something that
Smarty needs either opened or closed.
For example, in your example above you've captured an opening nocache with the
Smarty comment. There's likely a closing /nocache somewhere else in the template. If the opening nocache is commented out and
Smarty runs into a closing /nocache, it will likely generate an error. Same goes for if, section, foreach, and anything else that creates a
Smarty block.
Usually, if you can set the debug and/or error_reporting levels appropriately and then look into the error logs (or emitted error messages on screen), you can usually find out what
Smarty is complaining about.
edited by: rmburkhead, datetimebrief
--
- Robert
