Author Topic: How do you add the missing {foreachelse} stock function?  (Read 743 times)

0 Members and 1 Guest are viewing this topic.

Offline Huge

  • Newbie
  • *
  • Posts: 13
  • Karma: +7/-0
    • View Profile
How do you add the missing {foreachelse} stock function?
« on: November 02, 2013, 08:57:30 AM »
The TubeX docs show how to use it but for some reason the stock function was left out in the script and it isn't in the Compiler.php or anywhere else on the site. I tried added the code below to Compiler.php but it doesn't work. What am I missing? Any ideas? Thanks.

Code: [Select]
                case 'foreachelse':
                    self::CheckForUnexpected(self::$tag_stack, 'foreach', 'foreachelse');   
                    return self::PHP_START . 'endforeach; else:' . self::PHP_END;

Unofficial JMB Support Forums

How do you add the missing {foreachelse} stock function?
« on: November 02, 2013, 08:57:30 AM »


Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
904 Views
Last post July 30, 2012, 03:54:58 AM
by a4evermedia
1 Replies
1098 Views
Last post June 10, 2014, 12:31:58 PM
by ne0shell

anything