We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To reproduce the problem juste use this line of code : {{@root.datas.length}}
{{@root.datas.length}}
datas.length is working good but when you use @root in front is causing a Synthax Error in the generated php file.
As a workaround, I found in Compiler.php file in line 313 to replace code :
if (!$spvar) { if (($levels === 0) && $p) { $checks[] = "isset($base$p)"; } $checks[] = ("$base$p" == '$in') ? '$inary' : "is_array($base$p)"; }
with the following :
if ($spvar) { if ($p) { $checks[] = "isset($base$p)"; } } else { if (($levels === 0) && $p) { $checks[] = "isset($base$p)"; } $checks[] = ("$base$p" == '$in') ? '$inary' : "is_array($base$p)"; }
Seems ok for me.
But I don't know any resulting bugs of this code.
Thanks,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To reproduce the problem juste use this line of code :
{{@root.datas.length}}
datas.length is working good but when you use @root in front is causing a Synthax Error in the generated php file.
As a workaround, I found in Compiler.php file in line 313 to replace code :
with the following :
Seems ok for me.
But I don't know any resulting bugs of this code.
Thanks,
The text was updated successfully, but these errors were encountered: