PHP code example of skeeks / cms-related-handler-extra

1. Go to this page and download the library: Download skeeks/cms-related-handler-extra 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/ */

    

skeeks / cms-related-handler-extra example snippets



'components' =>
[
    'cms' =>
    [
        'relatedHandlers' => [
            'skeeks\cms\rhExtra\RelatedHandlerExtra' =>
            [
                'class' => 'skeeks\cms\rhExtra\RelatedHandlerExtra'
            ]
        ],
    ],

    'i18n' => [
        'translations' =>
        [
            'skeeks/rh/extra' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/rhExtra/messages',
                'fileMap' => [
                    'skeeks/rh/extra' => 'main.php',
                ],
            ]
        ]
    ]
],



<? if ($extra = $model->relatedPropertiesModel->getAttribute('extra')) : 

php composer.phar