insert file Constants.php
add function getMessage in globals.php