SMARTY Compiler Problem

From: Date: Wed, 03 Jul 2002 20:53:55 +0000
Subject: SMARTY Compiler Problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5185@lists.php.net to get a copy of this message
Hi, I think I run into a bug in the Smarty compiler. I have this in a template: <?xml version="1.0" encoding="{$encoding}" ?> which gets compiled into: <?xml version="1.0" encoding="<?php echo $this->_tpl_vars['encoding']; ?>" ?> The fact that <?php ... ?> is embedded between the <?xml ... ?> seems to break the PHP parser (parse error on that line). Is there a way around this? The only solution I have come now is to put the entire <?xml ... ?> in a string and feed it to SMARTY as a template variable... Thanks, Mike -- Mike Krus mkrus@newsisfree.com http://www.newsisfree.com/blog/ ICQ: 30900412

« previous php.smarty.general (#5185) next »