title: How to declare global functions in Yii
body: <p>i would like to know how to declare common functions in Yii so that we can call it from any controller, view or model file. for example i would like to declare date function globally. </p>