|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
grisevg Smarty n00b
Joined: 26 May 2011 Posts: 3
|
Posted: Thu Dec 01, 2011 10:17 am Post subject: Throw exception(not Notice) if variable undefined |
|
|
Hi,
Is there a way to force Smarty 3 throw exceptions instead of notices?
In smarty 2 there was error_unassigned param, but looks like it's removed in v3. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Dec 01, 2011 1:14 pm Post subject: |
|
|
Smarty2 did not throw any exception at all.
error_unassigned was a property of the early Smarty3 versions.
Because of internal changes to improve speed it was not possible to use it any longer in 3.1.
In the next major version 3.2 a new approach will be introduced how undefined variables are handled. It will then possible to configure exceptions as one option.
But 3.2 is still a couple of weeks down the road.... |
|
Back to top |
|
grisevg Smarty n00b
Joined: 26 May 2011 Posts: 3
|
Posted: Thu Dec 01, 2011 3:15 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|