mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Documentation (from r104483)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112350 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
971d0f108f
commit
4b3fa8f479
@ -5,9 +5,13 @@
|
|||||||
* the views folder, a template in views/Content or views/Layout will be rendered into $Content and
|
* the views folder, a template in views/Content or views/Layout will be rendered into $Content and
|
||||||
* $Layout, respectively.
|
* $Layout, respectively.
|
||||||
*
|
*
|
||||||
|
* <b>Caching</b>
|
||||||
|
*
|
||||||
* Compiled templates are cached. If you put ?flush=1 on your URL, it will force the template to be recompiled. This
|
* Compiled templates are cached. If you put ?flush=1 on your URL, it will force the template to be recompiled. This
|
||||||
* is a hack; the system should really detect when a page needs re-fetching.
|
* is a hack; the system should really detect when a page needs re-fetching.
|
||||||
*
|
*
|
||||||
|
* <b>Manifest File and Structure</b>
|
||||||
|
*
|
||||||
* Works with the global $_TEMPLATE_MANIFEST which is compiled by {@link ManifestBuilder->getTemplateManifest()}.
|
* Works with the global $_TEMPLATE_MANIFEST which is compiled by {@link ManifestBuilder->getTemplateManifest()}.
|
||||||
* This associative array lists all template filepaths by "identifier", meaning the name
|
* This associative array lists all template filepaths by "identifier", meaning the name
|
||||||
* of the template without its path or extension.
|
* of the template without its path or extension.
|
||||||
@ -43,7 +47,9 @@
|
|||||||
* )
|
* )
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @todo Fix the broken caching.
|
* @see http://doc.silverstripe.org/themes
|
||||||
|
* @see http://doc.silverstripe.org/themes:developing
|
||||||
|
*
|
||||||
* @package sapphire
|
* @package sapphire
|
||||||
* @subpackage view
|
* @subpackage view
|
||||||
*/
|
*/
|
||||||
@ -102,7 +108,7 @@ class SSViewer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $theme
|
* @param string $theme The "base theme" name (without underscores).
|
||||||
*/
|
*/
|
||||||
static function set_theme($theme) {
|
static function set_theme($theme) {
|
||||||
self::$current_theme = $theme;
|
self::$current_theme = $theme;
|
||||||
|
Loading…
Reference in New Issue
Block a user