From b755ab62e5dcfe5a371bd9c29962e9b85b4ede50 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sat, 14 Apr 2012 19:55:48 +1200 Subject: [PATCH] MINOR Update docs about sapphire rename, ModulePath template variable --- docs/en/changelogs/3.0.0.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/en/changelogs/3.0.0.md b/docs/en/changelogs/3.0.0.md index 468c91d3a..57d9558e5 100644 --- a/docs/en/changelogs/3.0.0.md +++ b/docs/en/changelogs/3.0.0.md @@ -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