CThemeManager

NamethemeManager
ClassCThemeManager
Location/home/vhosts/app-manager.eu5.org/framework/web/CThemeManager.php
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, {@link 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 {@link 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.

Options

Displaying 1-4 of 4 results.
NameValueDescriptionType
themeClass'CTheme'The name of the theme class for representing a theme. Defaults to {@link CTheme}. This can also be a class name in dot syntax.string
behaviorsarray()The behaviors that should be attached to this component. The behaviors will be attached to the component when {@link init} is called. Please refer to {@link CModel::behaviors} on how to specify the value of this property.array
basePathnullThe base path for all themes. @throws CException if the base path does not existstring
baseUrlnullThe base URL for all themes.string