MINOR Update docs about sapphire rename, ModulePath template variable

This commit is contained in:
Sean Harvey 2012-04-14 19:55:48 +12:00
parent 01e0ce7b24
commit b755ab62e5
1 changed files with 12 additions and 0 deletions

View File

@ -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