short open tags, xhtml output
| From: | Hojtsy Gabor | Date: | Sat, 17 Feb 2001 16:57:25 +0000 |
| Subject: | short open tags, xhtml output | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-133@lists.php.net to get a copy of this message | ||
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:
<?$1?>
<!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/
The starintg-point for Hungarian webmasters :: http://weblabor.hu/