1. Go to this page and download the library: Download sky/yii2-openui5 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sky / yii2-openui5 example snippets
use sky\openui5\OpenUiAsset;
OpenUiAsset::register($this);
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
'sky\openui5\OpenUiAsset',
];
namespace app\assets;
class MyAppAsset extends \yii\web\AssetBundle
{
public $sourcePath = '@app/assets/myapp';
}
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'
]
];
}
use app\assets\YourAppAsset;
YourAppAsset::register($this);
php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.