if ($sendHeaders) {
HeaderUtil::sendHeaders();
- // call shouldDisplay event
- if (!defined('NO_IMPORTS')) EventHandler::getInstance()->fireAction($this, 'shouldDisplay');
+ // call beforeDisplay event
+ if (!defined('NO_IMPORTS')) EventHandler::getInstance()->fireAction($this, 'beforeDisplay');
}
$sourceFilename = $this->getSourceFilename($templateName, $application);
include($compiledFilename);
if ($sendHeaders) {
- // call didDisplay event
- if (!defined('NO_IMPORTS')) EventHandler::getInstance()->fireAction($this, 'didDisplay');
+ // call afterDisplay event
+ if (!defined('NO_IMPORTS')) EventHandler::getInstance()->fireAction($this, 'afterDisplay');
}
}