48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
|
<?php
|
||
|
echo $this->element(
|
||
|
'/genericElements/SingleViews/single_view',
|
||
|
[
|
||
|
'data' => $entity,
|
||
|
'fields' => [
|
||
|
[
|
||
|
'key' => __('ID'),
|
||
|
'path' => 'id'
|
||
|
],
|
||
|
[
|
||
|
'key' => 'created',
|
||
|
'path' => 'created',
|
||
|
],
|
||
|
[
|
||
|
'key' => 'scope',
|
||
|
'path' => 'scope',
|
||
|
],
|
||
|
[
|
||
|
'key' => 'action',
|
||
|
'path' => 'action',
|
||
|
],
|
||
|
[
|
||
|
'key' => 'title',
|
||
|
'path' => 'title',
|
||
|
],
|
||
|
[
|
||
|
'key' => 'user_id',
|
||
|
'path' => 'user_id',
|
||
|
],
|
||
|
[
|
||
|
'key' => 'description',
|
||
|
'path' => 'description',
|
||
|
],
|
||
|
[
|
||
|
'key' => 'comment',
|
||
|
'path' => 'comment',
|
||
|
],
|
||
|
[
|
||
|
'key' => 'data',
|
||
|
'path' => 'data',
|
||
|
'type' => 'json'
|
||
|
],
|
||
|
],
|
||
|
'children' => []
|
||
|
]
|
||
|
);
|