mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9385 from mooror/patch-1
Updated the "Template Syntax" Documentation
This commit is contained in:
commit
3a99a57d41
@ -94,6 +94,10 @@ If a variable returns a string, that string will be inserted into the template.
|
|||||||
the system will attempt to render the object through its `forTemplate()` method. If the `forTemplate()` method has not
|
the system will attempt to render the object through its `forTemplate()` method. If the `forTemplate()` method has not
|
||||||
been defined, the system will return an error.
|
been defined, the system will return an error.
|
||||||
|
|
||||||
|
[notice]
|
||||||
|
If you wish to pass parameters to getter functions, you must use the full method name, e.g. $getThing('param'). Also, parameters must be literals, and cannot be other template variables (`$getThing($variable)` will not work)
|
||||||
|
[/notice]
|
||||||
|
|
||||||
[note]
|
[note]
|
||||||
For more detail around how variables are inserted and formatted into a template see
|
For more detail around how variables are inserted and formatted into a template see
|
||||||
[Formating, Modifying and Casting Variables](casting)
|
[Formating, Modifying and Casting Variables](casting)
|
||||||
|
Loading…
Reference in New Issue
Block a user