CApplication is the base class for all application classes. It contains global variables, functions etc. Here i added some most reused functions and properties of yii capplication. Simply we will call this “Yii::app()”Properties/ FunctionsOutputYii::app()->nameMy Web ApplicationYii::app()->basePathD:\wamp\www\yiiapi\protectedecho Yii::app()->baseUrl/yiiapiYii::app()->homeUrl/yiiapi/index.phpYii::app()->id3fe52c6cYii::app()->languageen_usYii::app()->timeZoneUTCYii::app()->localeDataPathD:\wamp\www\yiiapi\yiiframework\framework\i18n\dataYii::app()->createAbsoluteUrl(“/”)http://127.0.0.1/yiiapi/index.phpYii::app()->createUrl(“/”)/yiiapi/index.phpYii::app()->getBasePath()D:\wamp\www\yiiapi\protectedYii::app()->getBaseUrl()/yiiapiYii::app()->getHomeUrl()/yiiapi/index.phpYii::app()->getId()3fe52c6cYii::app()->getLanguage()en_usYii::app()->getTimeZone()UTCYii::app()->setBasePath()Yii::app()->setHomeUrl()Yii::app()->setId()Yii::app()->setLanguage()Yii::app()->SetTimeZone()Asia/Calcutta... Read More »