mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS Introduce TemplateGlobalProvider
This commit is contained in:
parent
5e9d16646d
commit
24f8f2715c
@ -8,7 +8,9 @@ exhaustive list. From your template you can call any method, database field, or
|
|||||||
currently in scope as well as its' subclasses or extensions.
|
currently in scope as well as its' subclasses or extensions.
|
||||||
|
|
||||||
Knowing what methods you can call can be tricky, but the first step is to understand the scope you're in. Scope is
|
Knowing what methods you can call can be tricky, but the first step is to understand the scope you're in. Scope is
|
||||||
explained in more detail on the [syntax](syntax#scope) page.
|
explained in more detail on the [syntax](syntax#scope) page. Many of the methods listed below can be called from any
|
||||||
|
scope, and you can specify additional static methods to be available globally in templates by implementing the
|
||||||
|
[api:TemplateGlobalProvider] interface.
|
||||||
|
|
||||||
<div class="notice" markdown="1">
|
<div class="notice" markdown="1">
|
||||||
Want a quick way of knowing what scope you're in? Try putting `$ClassName` in your template. You should see a string
|
Want a quick way of knowing what scope you're in? Try putting `$ClassName` in your template. You should see a string
|
||||||
|
Loading…
Reference in New Issue
Block a user