Re: [SMARTY] SMARTY Compiler Problem

From: Date: Tue, 02 Jul 2002 21:06:09 +0000
Subject: Re: [SMARTY] SMARTY Compiler Problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5187@lists.php.net to get a copy of this message
If you want to use templates with embedded XML statements you have to disable short tags in your php.ini file. On Wed, 03 Jul 2002, Mike Krus wrote: > 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 > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -Andrei http://www.gravitonic.com/ "The day Microsoft makes something that doesn't suck, is probably the day Microsoft starts making vacuum cleaners." - Ernst Jan Plugge

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