|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
Author |
Message |
Topic: Undefined variable handling |
ninjinka
Replies: 4
Views: 11853
|
Forum: Smarty 3 Posted: Fri Jun 15, 2012 2:34 pm Subject: Undefined variable handling |
by now i resolved using handling php error but it's not a real solution (i simply add a new variable after the error so next time the page will be loaded there won't be the error again).
I'll wait ... |
Topic: Undefined variable handling |
ninjinka
Replies: 4
Views: 11853
|
Forum: Smarty 3 Posted: Thu Jun 14, 2012 1:49 pm Subject: Undefined variable handling |
default modifyer ( |default: ) is usefull if you already know that a variable can be empty or not set.
sometimes you have construct like {${$varname}} that must have different default based on name ( ... |
Topic: Undefined variable handling |
ninjinka
Replies: 4
Views: 11853
|
Forum: Smarty 3 Posted: Thu Jun 14, 2012 12:44 pm Subject: Undefined variable handling |
Hello, i want to override the function "getVariable" in class "Smarty_Internal_Data" to manage undefined variable (for example log the variable name or give a default value for som ... |
|
Page 1 of 1 |
All times are GMT |
Powered by phpBB © 2001, 2005 phpBB Group
|