Switching themes dynamically

View themes are useful for overriding extension views and making special view versions.
Official Yii guide describes
static usage and configuration of views well so in this recipe we'll learn how to switch themes dynamically.