我想简化我的生活,而不是每次都使用<?php echo $text->title ?>,我想使用{%title}并得到相同的结果。我该怎么做呢?
我不一定想要这个表达式,而是像这样。
发布于 2019-01-03 21:52:22
您可以使用echo的简短表达式。
<?=$text->title?>另外,
在您的php.ini中,如果short_open_tag = Off,则将其更改为:
short_open_tag = Onhttps://stackoverflow.com/questions/54023394
复制相似问题