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.
我使用 IPB (Invision Power Board) 4.1.12.2,我需要在模板中显示当前年份。
我尝试了下一个:
<?php echo date('Y'); ?> {{date('Y');}} {date('Y')}
乃至:
<php> $var = date('Y'); </php> {$var}
但我没有任何结果。有任何想法吗?
最后我找到了解决方案。很容易:
{{$var = date('Y');}} {$var}