【发布时间】:2016-12-04 21:20:31
【问题描述】:
锂的新手。
我正在尝试在 Lithium 视图中内联 SVG 文件。
在以前的 PHP 框架中,我只需执行以下操作:
<?php echo file_get_contents('images/styleguide/left-arrow.svg'); ?>
在 Lithium 中,这将引发关于它在哪里寻找文件的非常史诗般的错误:
警告:file_get_contents(images/styleguide/left-arrow.svg):失败 打开流:没有这样的文件或目录 //app/resources/tmp/cache/templates/template_styleguide_index.html_17440333_1480885998_1509.php
由于这个位置,我想知道这样做的“锂方式”会是什么(如果有的话)。
【问题讨论】: