2017 © Pedro Peláez
 

yii2-extension yii2-openui5

asset openui5 for yii2

image

sky/yii2-openui5

asset openui5 for yii2

  • Thursday, April 12, 2018
  • by rockman84
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

openui5, (*1)

yii2-openui5

Yii2-openui5 is extension for Yii2 Framework. to easy intergrate with OpenUi5 asset., (*2)

How To Install?

via composer run, (*3)

php composer.phar require sky/yii2-openui5 "*"

or add in composer.json to require selection, (*4)

"sky/yii2-openui5" : "*"

Next step (Why do this? I'm try using bower but not compatible with Yii2 Asset structure): - download Openui5 sdk or runtime - extract zip file - copy all files inside openui5-xxx-xxx folder to folder vendor/sky/yii2-openui5/src/assets/openui5, (*5)

How To Use?

Basic Use

add the below code at view file, (*6)

use sky\openui5\OpenUiAsset;

OpenUiAsset::register($this);

or add 'sky\openui5\OpenUiAsset' at property $depends in your application Asset class example:, (*7)

    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'sky\openui5\OpenUiAsset',
    ];

Advanced Use

create new file MyAppAsset.php in app/assets folder, (*8)

namespace app\assets;

class MyAppAsset extends \yii\web\AssetBundle
{
    public $sourcePath = '@app/assets/myapp';
}

create new file YourAppAsset.php at app/assets folder, (*9)

namespace app\assets;

class YourAppAsset extends \sky\openui5\OpenUiAsset
{
    // set your application asset depends
    public $appAssets = [
        'myapp' => 'app\assets\MyAppAsset',
    ];

    // set openui5 data options
    public $jsOptions = [
        'data' => [
            'sap-ui-theme' => 'sap_belize',
            'sap-ui-libs' => 'sap.m'
        ]
    ];
}

run at your view file, (*10)

use app\assets\YourAppAsset;

YourAppAsset::register($this);

The Versions

12/04 2018

dev-master

9999999-dev https://rockman84.github.io/yii2-openui5/

asset openui5 for yii2

  Sources   Download

Apache-2.0 Apache License 2.0

The Requires

 

08/09 2017

v1.1

1.1.0.0 https://rockman84.github.io/yii2-openui5/

asset openui5 for yii2

  Sources   Download

Apache License 2.0

The Requires

 

31/08 2017

v1.0

1.0.0.0 https://rockman84.github.io/yii2-openui5/

asset openui5 for yii2

  Sources   Download

Apache License 2.0

The Requires