I have a template tag that uses $this->EE->TMPL->parse_variables()
to create a single item with an array of [items]
.
Array
(
...
[accessRole] => reader
[items] => Array
(
)
...
)
What should the parsed variables look like if it's empty and what should be it's corresponding template tag if I want to do something different when there are no [items]
?
An empty array doesn't seem to work (as shown above) when do {if items}
or {if "{items}" == ""}
.
Thoughts?