Skip to content

Commit

Permalink
minor #4344 [Templating] Added a sentence that explains what a Templa…
Browse files Browse the repository at this point in the history
…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 1d71332
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/templating/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 1d71332

Please sign in to comment.