Yii 1.1: swfobject

SwfObject Widget
4 followers

This extension is a widget to automate the process of use SwfObject in your application.

COMPATIBLE WITH "EXTENSION-DOWNLOAD" COMMAND :)

Resources

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

Change Log

February 2, 2010

  • Initial release.

Total 3 comments

#11162 report it
sebbe at 2012/12/20 05:48pm
Added better json and cleaned up the code a bit

Great work! I have already used this extension in multiple projects.

Over the course of the project, I've done some improvements I'd like to share. It's mostly about encoding json as string data through flash vars in IE that was an issue.

Besides that I've cleaned up the code a bit, and changed the widget code a bit so custom alternative content can be put in between start and end widget.

Download here: https://dl.dropbox.com/u/3318808/swfobject.zip

#695 report it
jerry2801 at 2010/03/16 10:54pm
flashvars problem~
$this->widget('ext.swfobject.ESwfObject',array(
    'swfFile'=>Html::mediaUrl('_resources/open-flash-chart.swf'),
    'width'=>600,
    'height'=>250,
    'flashvars'=>array(
        'data-file'=>$this->createUrl('',array('part'=>1)),
    ),
)); ?>

if will generate:

var flashvars_20101703104330 = {
 data-file : "/webmonitor/statistic/article1?part=1"
}

"data-file" will take mistake~

#696 report it
jerry2801 at 2010/03/16 10:53pm
flashvars problem~

[php] $this->widget('ext.swfobject.ESwfObject',array( 'swfFile'=>Html::mediaUrl('_resources/open-flash-chart.swf'), 'width'=>600, 'height'=>250, 'flashvars'=>array( 'data-file'=>$this->createUrl('',array('part'=>1)), ), )); ?>

if will generate:
[javascript]
var flashvars_20101703104330 = {
 data-file : "/webmonitor/statistic/article1?part=1"
} 

"data-file" will take mistake~

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: Other Open Source License
  • Developed by: prchakal
  • Category: User Interface
  • Votes: +2
  • Downloaded: 899 times
  • Created on: Feb 2, 2010
  • Last updated: Feb 5, 2010