Skip to content

fproject/yii2-flex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-flex

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