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.
如何在 Contao 3.2 中加载到模板语言文件?在以前的版本中是这样的:
<?php $this->loadLanguageFile('tl_mymodule.php'); ?>
但是Contao 3.2怎么样?
在您的前端模块类中使用它:
<?php $this->loadLanguageFile('tl_mymodule'); ?>
但是,如果您想包含在模板本身中,请执行此操作
<?php \System::loadLanguageFile('tl_mymodule'); ?>