espaceholder A quick and simple image placeholder extension for Yii.

ESpaceHolder

  1. Installation
  2. Resources

It is a Yii Framework extension, so you'll need a running Yii install to use it. (you'll also need internet access!)

It will (hopefully) make it easier to use http://placehold.it

Space Holder

Installation

Step 1) extract the content under protected/extensions (make sure it's called espaceholder)

Step 2) call it in a view like:

// a default (but useless) 50x50 box
$this->widget( 'ext.espaceholder.ESpaceHolder' );

// something more useful
$this->widget( 
  'ext.espaceholder.ESpaceHolder', 
  array( 
    'size' => '250', // you can also do 300x250
	'text' => 'Yii ROCKS!', 
	'htmlOptions' => array( 'title' => 'test image' ) 
  ) 
); 

Resources

0 0
2 followers
422 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags: image, widget
Developed by: imehesz
Created on: Jul 5, 2011
Last updated: 12 years ago

Downloads

show all

Related Extensions