fproject/yii2-flex

FlexWiget - a Yii 2.0 Widget for Flex application

Installs: 229

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 2

Open Issues: 0

Type:yii2-extension

1.1.4 2017-09-25 07:03 UTC

README

FlexWiget - a Yii 2.0 Widget for Flex application

Latest Stable Version Total Downloads Latest Unstable Version Build License

##Requirements

Yii 2.0 or above

##Installation

The preferred way to install this extension is through composer.

composer.phar require fproject/yii2-flex:"*"

##Usage

See the following sample code of view file:

 FlexWidget::begin([
     'name'=>'MyFlexApp', //Name of your Flex application file without SWF extension
     'baseUrl'=>'/flexapps/myflexapp', //Relative path to your flex app dir
     'rslBaseUrl'=>'/flexapps/rsls', //Relative path to your flex RSLs dir
     'moduleBaseUrl'=>'/flexapps/myflexapp/modules', //Relative path to your module dir
     'logoUrl' => 'url_to_your_logo',
     'width'=>'100%',
     'height'=>'100%',
     'align'=>'left',
     'enableHistory'=>'false',
     'allowFullScreen'=>'true',
     'allowFullScreenInteractive'=>'true',
     'flashVars'=>[ //The variables you want to pass to Flex application
         'loginUserId'=>'my_user_id_xxx', //The logged in User ID
         'userToken'=>'the_login_token', //The auth token that will be used for Flex's RPC authentication
     ],
 ]);
 FlexWidget::end();

Links