PHP code example of briceburg / silverstripe-flexilink
1. Go to this page and download the library: Download briceburg/silverstripe-flexilink 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/ */
briceburg / silverstripe-flexilink example snippets
class BlockContentHeading extends DataObject {
private static $db = array(
'Title' => 'Varchar',
'Content' => 'Text',
'Link' => 'FlexiLink', // <--- here
'LinkText' => 'FlexiChoice',
);