Class \Prado\Web\UI\TThemeManager
TThemeManager manages the themes used in a Prado application.
Themes are stored under the directory specified by the \Prado\Web\UI\setBasePath property. The themes can be accessed via URL \Prado\Web\UI\setBaseUrl. Each theme is represented by a subdirectory and all the files under that directory. The name of a theme is the name of the corresponding subdirectory. By default, the base path of all themes is a directory named "themes" under the directory containing the application entry script. To get a theme (normally you do not need to), call getTheme.
TThemeManager may be configured within page service tag in application configuration file as follows, <module id="themes" class="Prado\Web\UI\TThemeManager" BasePath="Application.themes" BaseUrl="/themes" /> where \Prado\Web\UI\getCacheExpire, \Prado\Web\UI\getCacheControl and \Prado\Web\UI\getBufferOutput are configurable properties of THttpResponse.
Class hierarchy
- \Prado\Web\UI\TThemeManager
- \Prado\TModule implements IModule
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
init(TXmlElement $config) : mixed
Initializes the module.
This method is required by IModule and is invoked by application. |
public
|
|
public
|
|
public
|
public
mixed
|
DEFAULT_BASEPATH
default themes base path
|
'themes'
|
public
mixed
|
DEFAULT_THEMECLASS
default theme class
|
\Prado\Web\UI\TTheme::class
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |