Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about using RendererInterface::render() #39

Open
wants to merge 2 commits into
base: 2.11.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/book/helpers/partial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ The `Partial` view helper is used to render a specified template within its own
variable scope. The primary use is for reusable template fragments with which
you do not need to worry about variable name clashes.

> Note that it is also possible to render a template within its own variable
> scope by calling `RendererInterface::render()` with a `$values` argument.
> See the documentation for [`PhpRenderer`](../php-renderer.md#render) for
> more information.

froschdesign marked this conversation as resolved.
Show resolved Hide resolved
A sibling to the `Partial`, the `PartialLoop` view helper allows you to pass
iterable data, and render a partial for each item.

Expand Down