Re: HTML_Template_Flexy and windows
| From: | Didier Galland | Date: | Thu, 22 May 2003 21:38:39 +0000 |
| Subject: | Re: HTML_Template_Flexy and windows | ||
| References: | 1 2 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-5559@lists.php.net to get a copy of this message | ||
-------------
Here is the new error message :
------------
ERROR in File e:\htdocs\testdomain.fr/templates\template.htm on Line 6
Position:91: unexpected something: (") character: 0x22
<html>
<head>
<title>{title}</title>
</head>
<body>
<H1>{title}</H1>
<table border=\"1\">
<!-- note here the use for foreach as an attribute value -->
<tr foreach=\"numbers,number.......
HTML_Template_Flexy::Syntax error in Template line:6
------------
Here is my test template (from example in doc) :
-------------
1<html>
2<head>
3<title>{title}</title>
4</head>
5<body>
6<H1>{title}</H1>
7<table border="1">
<!-- note here the use for foreach as an attribute value -->
<tr foreach="numbers,number,string">
<td> <a href="mypage.html?id=%7Bnumber%7D">{string}</a> </td>
</tr>
</table>
</body>
</html>
-------------
The source of error message
-------------
ERROR in File e:\htdocs\dev.ip-technologies.fr/templates\template.htm on
Line 6 Position:91: unexpected something: (") character: 0x22
<PRE><html>
<head>
<title>{title}</title>
</head>
<body>
<H1>{title}</H1>
<table border=\"<font color='red'>1\">
<!-- note here the use for foreach as an attribute value -->
<tr
foreach=\"numbers,number.......</font></PRE>HTML_Template_Flexy::Syntax
error in Template line:6
-------------
By the way there is only 16 chars in line 6 of template and not 91...
Thanks,
Didier
"Alan Knowles" <alan@akbkhome.com> a écrit dans le message de news:
3ECCBBC2.3070403@akbkhome.com...
> that is a parse error in the template, can you try the latest CVS
> version, it has clearer error reporting - should show you the line where
> the error occured. (eg. what does line 6 look like n the template)
>
> Regards
> Alan
>
>
>
> Didier Galland wrote:
> > Hi,
> >
> > I'm using/testing HTML_Template_Flexy under windows for local
developpement
> > and under linux on a remote server. Works almost fine on the linux box,
but
> > I can't make it work under windows (same code) :
> >
> > I'm getting this error : ERROR in File
> > e:\htdocs\testdomain/templates\template.htm on Line 6 Position:91:
> > unexpected something: (") character: 0x22
> >
> > Gettext seems to be correctly enabled in phpinfo()
> >
> > Any hint ??
> >
> > Didier
> >
> >
>