PHP code example of mmikkel / child-me
1. Go to this page and download the library: Download mmikkel/child-me 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/ */
mmikkel / child-me example snippets
\yii\base\Event::on(
\mmikkel\childme\ChildMe::class,
\mmikkel\childme\ChildMe::EVENT_DEFINE_ENTRY_TYPES,
static function (\mmikkel\childme\events\DefineEntryTypesEvent $event) {
// Only care about entries in the "Some Structure" section
if ($event->section !== 'someStructure') {
return;
}
// Make sure that the default entry type is not