11-15-2008, 04:04 PM
|
#1 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Need some help with PHPTAL
Hi!
I'm wondering what's wrong with this:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title tal:content="title">Your site name here</title>
</head>
<body>
<table tal:condition="show">
<caption>Images</caption>
<tbody>
<tr tal:repeat="image images">
<td tal:define="global img string:$path thumb/ $image/image_path"><img src="${img}" /></td>
</tr>
</tbody>
</table>
<div tal:condition="not:show">This user has no images</div>
</body>
</html>
Gives me:
Code:
Message: Unable to find path images in current scope
I'm new to PHPTAL, so I really need help =/
Thanks in advance!
__________________
|
|
|
|