|
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 |
webinfovista Smarty n00b
Joined: 14 Jul 2013 Posts: 1
|
Posted: Sun Jul 14, 2013 10:41 am Post subject: IF statement 24 condition allowed only |
|
|
Anyone can help me? why smarty 3 is not allowed more than 24 condition in if statement
check here example : it will be error
{if $pagename eq '1' ||
$pagename eq '2' ||
$pagename eq '3' ||
$pagename eq '4' ||
$pagename eq '5' ||
$pagename eq '6' ||
$pagename eq '7' ||
$pagename eq '8' ||
$pagename eq '9' ||
$pagename eq '10' ||
$pagename eq '11' ||
$pagename eq '12' ||
$pagename eq '13' ||
$pagename eq '14' ||
$pagename eq '15' ||
$pagename eq '16' ||
$pagename eq '17' ||
$pagename eq '18' ||
$pagename eq '19' ||
$pagename eq '20' ||
$pagename eq '21' ||
$pagename eq '22' ||
$pagename eq '23' ||
$pagename eq '24' ||
$pagename eq '25'}
please check in your any template file and
getting error Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template
if you remove 25 condition so it will work fine. why is problem? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Jul 14, 2013 10:31 pm Post subject: |
|
|
You did run into an internal stack limit of the template parser.
The fix is now in the svn trunk and will later be included in version 3.1.15 |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Jul 15, 2013 2:13 pm Post subject: |
|
|
{if $pagename gte 1 and $pagename lte 25}
|
|
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
|