PHP code example of toastnz / quickblocks
1. Go to this page and download the library: Download toastnz/quickblocks 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/ */
toastnz / quickblocks example snippets
namespace Toast\QuickBlocks;
class MyBlock extends QuickBlock
{
private static $singular_name = 'My Block';
private static $plural_name = 'My Blocks';
private static $icon = 'mysite/images/blocks/custom.png';
private static $db = [
'Content' => 'HTMLText'
];
}