PHP code example of buzzingpixel / corbomite-flash-data
1. Go to this page and download the library: Download buzzingpixel/corbomite-flash-data 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/ */
buzzingpixel / corbomite-flash-data example snippets
$model = $flashDataApi->makeFlashDataModel(['name' => 'test_flash_data_key']);
$model->dataItem('myItem', 'myVal');
$flashDataApi->setFlashData($model);
var_dump($flashDataApi->getFlashData()->getStoreItem('test_flash_data_key'));
var_dump($flashDataApi->getFlashData(false)->getStoreItem('test_flash_data_key'));
bash
php app flash/create-migrations
bash
php app migrate/up