'; } $fields = ''; if (!empty($data['fields'])) { foreach ($data['fields'] as $field) { $fields .= $this->element('genericElements/Configuration/Fields/scaffold.php', ['data' => $field]); } } echo sprintf( '