diff --git a/docs/book/helpers/partial.md b/docs/book/helpers/partial.md index dc84c13df..65ef39727 100644 --- a/docs/book/helpers/partial.md +++ b/docs/book/helpers/partial.md @@ -75,6 +75,14 @@ Which would then render: > access to your row objects within the view scripts, allowing you to call > methods on them (such as retrieving values from parent or dependent rows). +> ### An alternative to using Partial +> +> Note that it is also possible to render a template within its own variable +> scope by directly calling `RendererInterface::render()` with a `$values` +> argument. You might prefer to do this if your model is an array, or an +> object that implements `ArrayAccess`. See the documentation for +> [`PhpRenderer`](../php-renderer.md#render) for more information. + ## Using PartialLoop to Render Iterable Models Typically, you'll want to use partials in a loop, to render the same content