Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added function for sending an event inside a template

  • Loading branch information...
commit bc77d324df2712f18a73dc439169424a7c02fbc3 1 parent 2c90503
@ilmich authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 cmsfunctions.php
View
4 cmsfunctions.php
@@ -55,6 +55,10 @@ function __renderStaticBlock($name) {
echo $tpl->render();
}
+ function __sendEvent($name) {
+ EventManager::getInstance()->getEvent($name)->raise();
+ }
+
/**
* common functions
*
Please sign in to comment.
Something went wrong with that request. Please try again.