Let's have an example in template:
{var $s = 'Hello'}
{$s|foo}
And filter defined:
public static function foo($bar)
{
if ($bar === 'Hello') {
return $bar;
}
}
That works well, but when we change the condition in filter to if ($bar === 'Helloooo') {, latte says that that filter is not defined.
Let's have an example in template:
{var $s = 'Hello'} {$s|foo}And filter defined:
That works well, but when we change the condition in filter to
if ($bar === 'Helloooo') {, latte says that that filter is not defined.