Skip to content
This repository
Browse code

MINOR Update docs about sapphire rename, ModulePath template variable

  • Loading branch information...
commit b755ab62e5dcfe5a371bd9c29962e9b85b4ede50 1 parent 01e0ce7
Sean Harvey authored April 14, 2012

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  docs/en/changelogs/3.0.0.md
12  docs/en/changelogs/3.0.0.md
Source Rendered
@@ -14,6 +14,18 @@
14 14
 
15 15
 ## Upgrading ##
16 16
 
  17
+### References to sapphire replaced with ModulePath ###
  18
+
  19
+`sapphire` module has been renamed to `framework` for new installations of SilverStripe.
  20
+
  21
+Existing code bases can retain `sapphire` as the framework directory name, and a new template variable
  22
+`$ModulePath` is now used in place of hardcoding "sapphire" in the core code base, this allows easier
  23
+transitions if you want to rename the framework directory.
  24
+
  25
+In your templates, `$ModulePath(framework)` gives whatever directory the SilverStripe framework resides in.
  26
+It takes the value from the FRAMEWORK_PATH constant, which is automatically worked out based on where the
  27
+framework directory is, but can be set manually by defining FRAMEWORK_DIR in your _ss_environment.php file.
  28
+
17 29
 ### New ORM: More flexible and expressive querying via `DataList` ###
18 30
 
19 31
 The new "fluent" syntax to retrieve ORM records allows for a more

0 notes on commit b755ab6

Please sign in to comment.
Something went wrong with that request. Please try again.