PHP code example of open20 / amos-core

1. Go to this page and download the library: Download open20/amos-core 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/ */

    

open20 / amos-core example snippets


 \open20\amos\layout\assets\SpinnerWaitAsset::register($this);
 <div class="loading" id="loader" hidden></div>

    $('.loading').show();
    $('.loading').hide();

      'hideSettings' => true,

      'hideSettings' => [
          'roles' => ['ROLE1', 'ROLE2']
      ],

      'disableExportAll' => true

        'socialShare' => [
            'class' => \open20\amos\core\components\ConfiguratorSocialShare::class,
        ],


         <?= \open20\amos\core\forms\editors\socialShareWidget\SocialShareWidget::widget([
                'configuratorId' => 'socialShare',
                'model' => $model,
                'url'           => \yii\helpers\Url::to(\Yii::$app->params['platform']['backendUrl'].'/news/news/view?id='.$model->id, true),
                'title'         => $model->title,
                'description'   => $model->descrizione_breve,
//                'imageUrl'      => \yii\helpers\Url::to('absolute/route/to/image.png', true),

            ]); 

        'urlFrontend' => [
                'NewsModel' => '/news/news/{Id}/{Slug}',
            ],