How To Use Master Page

I need to add master page in my Yii application but i do not know how to create master page. somebody please help me…

What is master page?

I think you are looking for main.php, which is the main layout file, for the frontend view, you can edit the file located inside : frontend/views/layout/main.php and for your backend, you can edit : backend/views/layout/main.php , and the default folder for your site will be the "site" folder, which you can further edit for the content.

I hope this helps!