https://www.yiiframework.com/wiki/727/updated-how-to-create-call-custom-global-function-in-whole-application