Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在模板的 smarty 变量中使用 smarty 变量。
以下将在 smarty 3 中有效,但在 smarty 2 中无效:
{$_content_{$id}.content_title}
显示例如:
{$_content_10.content_title}
在 smarty 2 中它只会抛出一个错误。smarty 2有没有办法做到这一点?