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

Signin


Forgot your password?
Create an account

Tools

Stats

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.

Installation

  • Install the plugin

    $ symfony plugin-install http://plugins.symfony-project.com/sfRandomImagesPlugin
    
  • 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
    

Usage

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

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

Versions

0.0.1 => First version