PHP code example of goldfinch / icon-field
1. Go to this page and download the library: Download goldfinch/icon-field 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/ */
goldfinch / icon-field example snippets
use Goldfinch\IconField\Forms\IconField;
IconField::create('bootstrap', 'Icon');
use Goldfinch\IconField\Forms\IconField;
class Page
{
private static $db = [
'Icon' => 'Icon',
];
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->insertBefore('Content', IconField::create('icon_set_name', 'Icon'));
}
}
bash
php taz iconset
bash
php taz vendor:icon-field:templates