I tried placing shortcut functions, created a globals.php and placed require once on the index.php just below yii…
require_once($yii);
require_once($globals);
the shortcut functions work smoothly… BUT i noticed that the captcha images are no longer generated, but if i try to comment out //require_once($globals); the images are generated again…