PHP code example of userwebdevelop / og-config-pages

1. Go to this page and download the library: Download userwebdevelop/og-config-pages 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/ */

    

userwebdevelop / og-config-pages example snippets


'controllerMap' => [
    //остальной код
    'uwb-ogconfigpages' => 'userwebdevelop\ogconfigpages\OgConfigPages',
];

'og_title' => Yii::t('models', 'OpenGraph Title'),
'og_description' => Yii::t('models', 'OpenGraph Description'),
'og_url' => Yii::t('models', 'OpenGraph Url'),
'og_image' => Yii::t('models', 'OpenGraph Image'),

<?= $form->field($model, 'og_title')->textInput() 

'og_title'
'og_description'
'og_url'
'og_image'