PHP code example of briceburg / silverstripe-flexichoice

1. Go to this page and download the library: Download briceburg/silverstripe-flexichoice 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-flexichoice example snippets


class BlockContentHeading extends DataObject {
  private static $db = array(
    'Title'     => 'Varchar',
    'Content'   => 'Text',
    'Link'      => 'FlexiLink',
    'LinkText'  => 'FlexiChoice', // <--- here
  );