Yii 1.1: Some basic of theme


In a theme there is some basic folder structure:


Here in blackboot theme, some basic folder,

  • css,
  • js,
  • img,
  • view->layouts

In view->layouts, php files are design to get dynamic content from framework side and show them in particular sections(divs).


Here, in $content variable, actual contents replaced for particular views.

For other views like

  • view->layouts->column1.php
  • view->layouts->column2.php

there used some other framework functions called beginContent() and endContent().


Between these two functions, we have to write all necessary divs with dynamic arrays, dynamic widgets and other customized things.

Leave a Reply

Your email address will not be published. Required fields are marked *