PHP Yii Framework Global Variables Tutorial with Examples Today, We want to share with you PHP Yii Framework Global Variables Tutorial with Examples. In this post we will show you Yii CApplication, hear for php – declaring global variables in yii and use them in controller we will give you demo and example for implement.