yii2-flex-widget FlexWiget - a Yii 2.0 Widget for Flex application

FlexWiget

  1. Requirements
  2. Installation
  3. Usage
  4. Links

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
     '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

0 0
1 follower
0 downloads
Yii Version: 2.0
License: Apache-2.0
Category: User Interface
Tags: widget, yii2
Developed by: Bui Sy Nguyen
Created on: Jun 1, 2015
Last updated: 2 years ago

Related Extensions