n:if activerow in latte template
Notice: This thread is very old.
- pistols
- Member | 26
hello there,
I have a question about the n:if macro.
my model does something like this:
and my presenter puts that activerow directly into my template.
My problem is with the n:if makro
if I do this:
evaluates always true… even when i have no returned data from my model.
I dumped the active row, and indeed it is a live object (TRUE). but with no data…
could you point me how to nicely hide the div if my result set is empty?
thanks
- David Matějka
- Moderator | 6445
ActiveRow cannot be “empty”, only Selection can. On Selection you can do something like this: