02-06-2009, 03:33 PM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Jan 2009
Posts: 8
Thanks: 1
|
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?
|
|
|
|