integrated Yii into the theme for drawing from layout file.