fproject/yii2-flex
最新稳定版本:1.1.4
Composer 安装命令:
composer require fproject/yii2-flex
包简介
FlexWiget - a Yii 2.0 Widget for Flex application
README 文档
README
FlexWiget - a Yii 2.0 Widget for Flex application
##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
统计信息
- 总下载量: 242
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache
- 更新时间: 2015-03-10