It must be a bug...

By config the file ‘config/main.php’

‘theme’=>‘classic’

can not change the default Layout file: D:\website\postus\protected\views\layouts\main.php

theme != layout

Yii::app()->controller->layout

or extend CController::layout

or create a layout file for the theme here:


D:\website\postus\themes\classic\views\layouts\main.php

Note: You should protect your view folder in the theme folder.