View Single Post
Old 02-06-2009, 03:33 PM   #1 (permalink)
nightowl
The Wanderer
 
Join Date: Jan 2009
Posts: 8
Thanks: 1
nightowl is on a distinguished road
Default PHPTal: unset variables

When I design a template that refers to some var

e.g.

Code:
<span tal:content="title"></span>
If my PHP script doesn't set this var, an error is thrown by PHPTal.

Code:
Unable to find path title in current scope
I'd prefer if it just went on, rendering it with an empty value for that var.

Is that possible?
nightowl is offline  
Reply With Quote