Filter ‘blah’ is not defined

Notice: This thread is very old.
Pavel Janda
Member | 977
+
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?

Felix
Nette Core | 1196
+
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)

Pavel Janda
Member | 977
+
0
-

Well than it should not throw an Exception.

Milo
Nette Core | 1283
+
0
-

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

Pavel Janda
Member | 977
+
0
-

Done