Permalink
Browse files

MINOR Documentation (from r104483)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112350 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 971d0f1 commit 4b3fa8f47965f1e0dca7979fd376beb7179382c7 @chillu chillu committed Oct 15, 2010
Showing with 8 additions and 2 deletions.
  1. +8 −2 core/SSViewer.php
View
@@ -4,10 +4,14 @@
* The SSViewer class handles rendering of .ss templates. In addition to a full template in
* the views folder, a template in views/Content or views/Layout will be rendered into $Content and
* $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
* 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()}.
* This associative array lists all template filepaths by "identifier", meaning the name
* of the template without its path or extension.
@@ -43,7 +47,9 @@
* )
* </code>
*
- * @todo Fix the broken caching.
+ * @see http://doc.silverstripe.org/themes
+ * @see http://doc.silverstripe.org/themes:developing
+ *
* @package sapphire
* @subpackage view
*/
@@ -102,7 +108,7 @@ static function fromString($content) {
}
/**
- * @param string $theme
+ * @param string $theme The "base theme" name (without underscores).
*/
static function set_theme($theme) {
self::$current_theme = $theme;

0 comments on commit 4b3fa8f

Please sign in to comment.