PHP code example of spicyweb / craft-odds-and-ends
1. Go to this page and download the library: Download spicyweb/craft-odds-and-ends 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/ */
spicyweb / craft-odds-and-ends example snippets
use spicyweb\oddsandends\fields\AuthorInstructions;
use spicyweb\oddsandends\fields\DisabledProducts;
use spicyweb\oddsandends\widgets\RollYourOwn;
return [
'disableNormalFields' => [
AuthorInstructions::class,
],
'disableCommerceFields' => [
DisabledProducts::class,
],
'disableWidgets' => [
RollYourOwn::class,
],
];