PHP code example of justinholtweb / craft-cleanair
1. Go to this page and download the library: Download justinholtweb/craft-cleanair 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/ */
justinholtweb / craft-cleanair example snippets
use justinholtweb\cleanair\services\Types;
use justinholtweb\cleanair\events\RegisterTypesEvent;
Event::on(Types::class, Types::EVENT_REGISTER_TYPES, function(RegisterTypesEvent $event) {
$event->types['widgets'] = new MyWidgetType();
});