Filter ‘blah’ is not defined

4 years ago

Pavel Janda
Backer | 843
+
0
-

When Filter is defined, but returns void (does not return anything), Latte says it is not defined.

Is that a bug or just an inaporpriate error message?

4 years ago

Felix
Nette Core | 937
+
0
-

No it's not.

Here, checking if filter is defined (https://github.com/…e/Engine.php#L298)

Otherwise, return filter value (https://github.com/…e/Engine.php#L312)

4 years ago

Pavel Janda
Backer | 843
+
0
-

Well than it should not throw an Exception.

4 years ago

Milo
Nette Core | 1149
+
0
-

@PavelJanda If you are sure that the filter is really registered, open an issue please.

4 years ago

Pavel Janda
Backer | 843
+
0
-

Done