Join Jon Peck for an in-depth discussion in this video Serving the Bootstrap framework with Assetic, part of Learning Symfony2 for PHP (2014).
Paths to the files are typically relatives…to the public web root and can include…wild cards or the name of a specific file.…If there are style sheets within a particular bundle,…they can use the at vendor bundle name…to specify a relative path.…Assetic manages the paths to the assets…and will change them upon minification and so forth,…which will break the paths.…To mitigate that, the CSS rewrite filter…will update the paths appropriately.…After all the style sheets and filters have been defined,…
- Installing Symfony
- Creating a bundle from the console
- Customizing and generating database tables
- Generating controllers
- Creating, editing, and debugging entities
- Displaying and debugging a form
- Rendering content with templates
Skill Level Intermediate
Q: When trying to access the application, I receive an error stating "This script is only accessible from localhost." How can I get around this restriction?
A: The development front controller and configuration scripts are protected by default to only allow access from the localhost. Refer to the video titled “Exploring the Symfony layout” to see how to disable this security.