website layout


i have made a Html template for ma website. i want to incorporate it in ma YII website. how do i do that? i mean which place i do it… help… might be a dumb question to ask… but m quite new in this…

Yii allows you to decide on how to put the template files, but, initially, you could place CSS files under webapp/css and put your HTML code inside /protected/views/layouts/main.php

Welcome to Yii! Hope it helps!



Divide your HTML code into header, body and footer part. And the content in body is part is displayed by

<?php echo $content; ?>

where as, if you wish to have left / right column in your site, you can use column2.php