Skip to content

Commit 1d71332

Browse files
committed
minor #4344 [Templating] Added a sentence that explains what a Template Helper is (iltar)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4344). Discussion ---------- [Templating] Added a sentence that explains what a Template Helper is | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | n/a I found a SecurityHelper in the SecurityBundle. I was unsure what this helper was or what it was supposed to do. After some googling I've landed on the templating component documation. This is correct as the `HelperInterface` can be found in [the component](http://symfony.com/doc/current/components/templating/introduction.html#helpers). However, it doesn't explain what a helper is. After some searching, [the cookbook *does* explain what a helper is](http://symfony.com/doc/current/cookbook/templating/PHP.html#using-template-helpers). I've pretty much copied over the sentence from the cookbook to the component. If you have a better proposal, I can add that instead. Commits ------- 6cdecde [Templating] Added a sentence that explains what a Template Helper is
2 parents 691b13d + 6cdecde commit 1d71332

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/templating/introduction.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ escaper using the
135135
Helpers
136136
-------
137137

138-
The Templating component can be easily extended via helpers. The component has
138+
The Templating component can be easily extended via helpers. Helpers are PHP objects that
139+
provide features useful in a template context. The component has
139140
2 built-in helpers:
140141

141142
* :doc:`/components/templating/helpers/assetshelper`

0 commit comments

Comments
 (0)