Note that there are some explanatory texts on larger screens.

plurals
  1. POSymfony2 Assetic generating dead links in dev
    primarykey
    data
    text
    <p>I'll try to keep it short, don't want to waste your time. Working in dev environment:</p> <p>template:</p> <pre><code>{% block javascripts %} {% javascripts '@SomeBundle/Resources/public/js/*' %} &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt; {% endjavascripts %} {% endblock %} </code></pre> <p>html output:</p> <pre><code>&lt;script type="text/javascript" src="/js/98b0881_part_1_fill_form.jquery_1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/98b0881_part_1_jquery-1.8.3.min_2.js"&gt;&lt;/script&gt; </code></pre> <p>so it reads the contents of Resources/public/js dir and makes the correct number of links with the right names. When I click the given url however, i get 404 apache response:</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt; &lt;html&gt;&lt;head&gt; &lt;title&gt;404 Not Found&lt;/title&gt; &lt;/head&gt;&lt;body&gt; &lt;h1&gt;Not Found&lt;/h1&gt; &lt;p&gt;The requested URL /js/98b0881_part_1_jquery-1.8.3.min_2.js was not found on this server.&lt;/p&gt; &lt;hr&gt; &lt;address&gt;Apache/2.2.22 (Ubuntu) Server at ipardon.loc Port 80&lt;/address&gt; &lt;/body&gt;&lt;/html&gt; </code></pre> <p>Which pretty much means no JS for me on my page. What have i tried:</p> <pre><code>app/console assets:install web --no-dev app/console assetic:dump --no-dev </code></pre> <p>adding bundle name in config.yml to assetic.bundles[] googling ( of course )</p> <p>Anyone encountered anything like this before? I have, and "solved" it by not using assetic, but I'd like to get it right this time. Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload