SlotsHelper
class SlotsHelper extends Helper
SlotsHelper manages template slots.
Properties
protected | $charset | from Helper | |
protected | $slots | ||
protected | $openSlots |
Methods
start(string $name)
Starts a new slot.
stop()
Stops a slot.
bool
has(string $name)
Returns true if the slot exists.
string
get(string $name, bool|string $default = false)
Gets the slot value.
set(string $name, string $content)
Sets a slot value.
bool
output(string $name, bool|string $default = false)
Outputs a slot.
string
getName()
Returns the canonical name of this helper.