Class CThemeManager
CThemeManager manages the themes for the Web application.
A theme is a collection of view/layout files and resource files (e.g. css,
image, js files). When a theme is active, CController
will look for the
specified view/layout under the theme folder first. The corresponding
view/layout files will be used if the theme provides them. Otherwise, the
default view/layout files will be used.
By default, each theme is organized as a directory whose name is the theme name. All themes are located under the "WebRootPath/themes" directory.
To activate a theme, set the CWebApplication::setTheme theme property to be the name of that theme.
Since a self-contained theme often contains resource files that are made Web accessible, please make sure the view/layout files are protected from Web access.
- CComponent
- CApplicationComponent implements IApplicationComponent
- CThemeManager
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/CThemeManager.php
public
|
|
public
array
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
getIsInitialized(),
init()
|
string |
DEFAULT_BASEPATH
|
'themes' |
#
default themes base path |
public
string
|
$themeClass | 'CTheme' |
$behaviors
|
public
array
|
$themeNames |
#
List of available theme names. |
public
string
|
$basePath |
#
The base path for all themes. Defaults to "WebRootPath/themes". |
public
string
|
$baseUrl |
#
The base URL for all themes. Defaults to "/WebRoot/themes". |
$isInitialized
|