cerebrate/templates/element/genericElements/Configuration/Fields.php/scaffold.php

5 lines
230 B
PHP
Raw Normal View History

2021-04-30 23:59:53 +02:00
<?php
$random = Cake\Utility\Security::randomString(8);
$type = empty($data['type']) ? 'generic' : $data['type'];
echo $this->element('genericElements/Configuration/Fields/' . $type . 'Field.php', ['data' => $field]);