Consider the following template:
0
Rendering that template outputs nothing:
The compiled template looks like this:
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "0";
}
This is strange: echoing 0 or "0" in PHP ouputs "0".
Maybe that's just an issue of twigfiddle.com.
Good point. Let me check with command line.
@xabbuh You are absolutely right. It works ex expected from the command line. Closing this issue and opening one on twigfiddle repository. Thanks for your help.
Thanks @ericmorand & @xabbuh I've fixed the issue on twigfiddle side.
Apologies for the noise.
Have a good day,
Alain
Most helpful comment
Thanks @ericmorand & @xabbuh I've fixed the issue on twigfiddle side.
Apologies for the noise.
Have a good day,
Alain