有没有办法使用findAll()条件的功能?
我想做点什么
->findAll('active'=1);
Run Code Online (Sandbox Code Playgroud)
我知道我可以编写自定义存储库类,但只是为了一个简单的"where-condition"我认为有一种更简单的方法.
我使用syomfony2和assetic.如何在我的网络文件夹中创建指向pdf文件的链接?
它适用于图像,但没有pdf标签
{% image '@myBundle/Resources/public/pdf/dok.pdf'%}
<img src="{{ asset_url }}" alt="my image"/>
{% endimage %}
Run Code Online (Sandbox Code Playgroud)
我想做的是一个简单的 <a href...>Download pdf here</a>