PHP code example of skeeks / cms-i18n-db

1. Go to this page and download the library: Download skeeks/cms-i18n-db 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-i18n-db example snippets


'components' =>
[
    'i18n' => [
        'class'     => 'skeeks\cms\i18nDb\I18NDbComponent',
        'translations' =>
        [
            'skeeks/i18nDb/app' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/i18nDb/messages',
                'fileMap' => [
                    'skeeks/i18nDb/app' => 'app.php',
                ],
            ]
        ]
    ],
],
'modules' =>
[
    'i18nDb' => [
        'class'         => '\skeeks\cms\i18nDb\I18nDbModule',
    ]
]