View Helpers
contentFor()
Signature
Section titled “Signature”contentFor() — returns void
Available in: controller
Category: Miscellaneous Functions
Description
Section titled “Description”Used to store a section’s output for rendering within a layout. This content store acts as a stack, so you can store multiple pieces of content for a given section.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
position | any | no | last | The position in the section’s stack where you want the content placed. Valid values are first, last, or the numeric position. |
overwrite | any | no | false | Whether or not to overwrite any of the content. Valid values are false, true, or all. |