Skip to content
Browse files

Added function for sending an event inside a template

  • Loading branch information...
1 parent 2c90503 commit bc77d324df2712f18a73dc439169424a7c02fbc3 @ilmich committed
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
*

0 comments on commit bc77d32

Please sign in to comment.
Something went wrong with that request. Please try again.