![]() |
PHPTal: unset variables
When I design a template that refers to some var
e.g. Code:
<span tal:content="title"></span>Code:
Unable to find path title in current scopeIs that possible? |
Anybody who can help me with this?
|
I don't know anything about PHPTal, but is it not possible to do something like the following to set a blank
title variable?php Code:
|
yes, that is possible. But I don't want to assign values to all possible vars in the template. There are numerous places where you want to foresee that you can add data, but often you don't actually want to do it for this particular page...
|
Use tal:condition="exists:variablename" before using it.
See answer on stackoverflow: http://stackoverflow.com/questions/4...ined-variables |
| All times are GMT. The time now is 02:41 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0