Re: short open tags, xhtml output

From: Date: Mon, 19 Feb 2001 01:57:55 +0000
Subject: Re: short open tags, xhtml output
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-141@lists.php.net to get a copy of this message
This is fixed in 1.3.0, which we will be releasing within the next week. It is the <?xml ?> line that is the problem. Hojtsy Gabor wrote: > Hi! > > I get: > > Parse error: parse error in Smarty.class.php on line 418 > > if I turn off short_open_tags in the ini (or with .htaccess). > I would like to produce xhtml output, and it seems I need > to turn off short_open_tags to do that, or else if I have: > > <?xml version="1.0" encoding="iso-8859-2"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xml:lang="hu" lang="hu"> > > in my .tpl template, it gets to be: > > &lt;?$1?&gt; > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xml:lang="hu" lang="hu"> > > in the compiled .php template... Not too good... :(((( > > Goba > __________________________________________________________________ > Hungarian PHP Manual :: Hungarian PHP Mirror :: http://hu.php.net/0ò > —´ Þ#Äë¢iE©T > The starintg-point for Hungarian webmasters :: > http://weblabor.hu/ > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at nc=¤¤Ð/}) ¦� > ‹¸http://www.phpinsider.com/php/code/Smarty/

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