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
`
解析结果 ` Parse error: syntax error, unexpected 'default' (T_DEFAULT) in /wwwroot/newthink/runtime/temp/90b101dda1e9f74a4e15ff139d759c7e.php on line 155 0.039758s ShowPageTrace [4] ErrorException in 90b101dda1e9f74a4e15ff139d759c7e.php line 155 syntax error, unexpected 'default' (T_DEFAULT)
The text was updated successfully, but these errors were encountered:
{:$menu.parent.title...} {:$xxx}的写法会被解析成所以如下两种方法是正确的.
{:$menu['parent']['title']} //或 {$menu.parent.title|default = "无"}
请看错误中这一行.
<?php echo $menu['parent']['title'] | default = "无"; ?>
Sorry, something went wrong.
我又一次输在了符号上面,:是之前打印了一下,o(╯□╰)o
No branches or pull requests
`
{:$menu.parent.title | default = "无"} {$menu.group | default = "无"} `解析结果
` 往下一级没有问题,$menu.parent.title 不行`
Parse error: syntax error, unexpected 'default' (T_DEFAULT) in /wwwroot/newthink/runtime/temp/90b101dda1e9f74a4e15ff139d759c7e.php on line 155
0.039758s ShowPageTrace
[4] ErrorException in 90b101dda1e9f74a4e15ff139d759c7e.php line 155
syntax error, unexpected 'default' (T_DEFAULT)
The text was updated successfully, but these errors were encountered: