sfRandomImagesPlugin - 1.0.0

Symfony Random Images Plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to the Plugins Home


Forgot your password?
Create an account



advanced search
Information Readme Dependencies Releases Changelog Contribute
Show source | Show as Markdown

sfRandomImages plugin

sfRandomImagesPlugin provide a helper to show random imagens from a folder.


  • Install the plugin

    $ symfony plugin-install
  • Edit your config/settings.yml

    all: .settings: enabled_modules: sfRandomImagesPlugin

  • Add to your config/app.yml (these values are default)

    all: randomimg: dir: random # the directory to search for images (this is under /images) extension: jpg # the extension of the files

  • Clear your cache

    $symfony cc


  • Considering you have already created the web/images/random/ folder

  • WARNING: The file names must be 0.jpg, 1.jpg , 2,jpg , 3.jpg...


0.0.1 => First version