sfAssetHostPlugin - 0.0.1

Easily host your static content somewhere else

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfAssetHost Plugin

By using the sfAssetHostPlugin you can easily host your static media elsewhere.

Installation

  • Install the plugin

    $ symfony plugin:install sfAssetHostPlugin
    
  • Enable the helper

    use_helper('AssetHost')

    or enable it in your settings.yml

  • Define the asset host in app.yml

    prod:
      assets:
        host: http://static.symfony-project.com/%s
  • Use it

    use_javascript_host('jquery.js')
    use_stylesheet_host('style.css')