PHP code example of littlegiant / silverstripe-image-points
1. Go to this page and download the library: Download littlegiant/silverstripe-image-points 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/ */
littlegiant / silverstripe-image-points example snippets
use LittleGiant\SilverStripeImagePoints\DataObjects\Point;
private static $has_one = [
'Image' => Image::class
];
private static $has_many = [
'ImagePoints' => Point::class . '.PointOf'
];
private static $owns = [
'Image'
];
$fields->addFieldsToTab('Root.ImagePoints', [
new GridField('ImagePoints', 'Image Points', $this->ImagePoints(), $myGridfieldConfig),
]);