mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Update docs about sapphire rename, ModulePath template variable
This commit is contained in:
parent
01e0ce7b24
commit
b755ab62e5
@ -14,6 +14,18 @@
|
|||||||
|
|
||||||
## Upgrading ##
|
## 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` ###
|
### New ORM: More flexible and expressive querying via `DataList` ###
|
||||||
|
|
||||||
The new "fluent" syntax to retrieve ORM records allows for a more
|
The new "fluent" syntax to retrieve ORM records allows for a more
|
||||||
|
Loading…
x
Reference in New Issue
Block a user