Include JavaScript and CSS file in Yii Framework

Include JavaScript and CSS file in Yii Framework

While working on a project in YII in beginning I came to know a very nice way of including JavaScript and CSS style files in the Layout / View file  in YII Framework.

In YII we use

and

functions. Please see the code below.