Permalink
Browse files

minor #4344 [Templating] Added a sentence that explains what a Templa…

…te 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
  • Loading branch information...
weaverryan committed Oct 29, 2014
2 parents 691b13d + 6cdecde commit 1d71332030658d0bfe91752af8cb007f929457cd
Showing with 2 additions and 1 deletion.
  1. +2 −1 components/templating/introduction.rst
@@ -135,7 +135,8 @@ escaper using the
Helpers
-------
The Templating component can be easily extended via helpers. The component has
The Templating component can be easily extended via helpers. Helpers are PHP objects that
provide features useful in a template context. The component has
2 built-in helpers:
* :doc:`/components/templating/helpers/assetshelper`

0 comments on commit 1d71332

Please sign in to comment.