PHP code example of samuelelonghin / yii2-string-id-activerecord
1. Go to this page and download the library: Download samuelelonghin/yii2-string-id-activerecord 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/ */
samuelelonghin / yii2-string-id-activerecord example snippets
// ...
'components' => [
// altri componenti...
'stringIdActiveRecord' => [
'class' => samuelelonghin\db\assets\StringIdActiveRecord,
'stringIdLenght' => function () {
return 15;
}
]
]
// ...
'components' => [
// altri componenti...
'stringIdActiveRecord' => [
'class' => samuelelonghin\db\assets\StringIdActiveRecord,
'stringIdLenght' => 15,
]
]