Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Symfony2 comes with a built in debug mode, which is what you are using when you access url's with the app_dev.php addition. The debug mode caches significantly less than the production mode which can be accessed by directing your browser to the url, but leaving out the app_dev.php. If accessing this url doesn't work then it probably means that you need to clear your production cache. </p> <p>To clear the cache direct you terminal (command console) to the root of you Symfony project. From there type the following command:</p> <pre><code>php app/console cache:clear --env=prod --no-debug </code></pre> <p>Per comments below in Symfony 3 this has moved:</p> <pre><code>php bin/console cache:clear --env=prod --no-debug </code></pre> <p>This should clear your productions cache and allow you to access urls without the app_dev.php.</p> <p>As for the web part of the url. The easiest way to remove that is to set the web root of your project to the web folder. It's best to do this with apache using virtual hosts, but there are ways to do it with the htaccess.</p> <p>This link explains how to use the htaccess file to change the webroot. <a href="http://kb.siteground.com/how_to_change_my_document_root_folder_using_an_htaccess_file/" rel="nofollow"><a href="http://kb.siteground.com/how_to_change_my_document_root_folder_using_an_htaccess_file/" rel="nofollow">http://kb.siteground.com/how_to_change_my_document_root_folder_using_an_htaccess_file/</a></a></p> <p>Hope this helps!</p>
 

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