PHP code example of macklus / yii2-metadatabehavior
1. Go to this page and download the library: Download macklus/yii2-metadatabehavior 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/ */
macklus / yii2-metadatabehavior example snippets
use macklus\MetaDataBehavior\MetaDataBehavior;
public function behaviors()
{
return [
[
'class' => MetaDataBehavior::className(),
'attribute' => 'metadata',
],
];
}