Browse files

MINOR Update docs about sapphire rename, ModulePath template variable

  • Loading branch information...
halkyon committed Apr 14, 2012
1 parent 01e0ce7 commit b755ab62e5dcfe5a371bd9c29962e9b85b4ede50
Showing with 12 additions and 0 deletions.
  1. +12 −0 docs/en/changelogs/
@@ -14,6 +14,18 @@
## Upgrading ##
+### References to sapphire replaced with ModulePath ###
+`sapphire` module has been renamed to `framework` for new installations of SilverStripe.
+Existing code bases can retain `sapphire` as the framework directory name, and a new template variable
+`$ModulePath` is now used in place of hardcoding "sapphire" in the core code base, this allows easier
+transitions if you want to rename the framework directory.
+In your templates, `$ModulePath(framework)` gives whatever directory the SilverStripe framework resides in.
+It takes the value from the FRAMEWORK_PATH constant, which is automatically worked out based on where the
+framework directory is, but can be set manually by defining FRAMEWORK_DIR in your _ss_environment.php file.
### New ORM: More flexible and expressive querying via `DataList` ###
The new "fluent" syntax to retrieve ORM records allows for a more

0 comments on commit b755ab6

Please sign in to comment.