为什么源代码位于app/resources/tmp/cache文件夹中


why do the source code located on app/resources/tmp/cache folder ?

我是锂的新手。我有一个锂代码,我想把它改一下。因此,我的想法是在所有源代码中搜索我想要更改的特定代码(例如tag>),并在app/resources/tmp/cache子文件夹中找到了它。为什么源代码位于那里?

Lithium为视图(模板)生成缓存的php文件。这些文件混合了html和php代码。您可以在文件名中看到这是哪个视图:template_views_<folder_of_the_view>_<action_of_the_view>.html_<unique_ids_and_timestamp>.php因此,如果你的文件名为template_views_farms_add.html_1234567_123456789_123.php,你可以在app/views/farms/add.html.php 中找到你想要编辑的文件

正如hakre所说:不要编辑/tmp/cache中的文件!你可以删除它们,锂会再次产生它们。