dd_table() html()

Two-column content (a profile, an order summary) as a definition list, field => value.

html()->dd_table($replace = [], $field_types = [], $extra = [])

Options

OptionMeaning
$replaceField => value (values are developer HTML).
$field_typesField => form2 method that shows it (info, info_date...).
legend, classTitle; classes.

Example

name
Anna Koval
email
[email protected]
city
Lviv
about
Collects old maps and writes about the cities on them.

Code

return html()->dd_table([
    'name' => 'Anna Koval',
    'email' => '[email protected]',
    'city' => 'Lviv',
    'about' => 'Collects old maps and writes about the cities on them.',
]);

Notes

  • It draws through form2 in dd_mode, so the rows look like the other read-only forms.

See also: html/simple_table, form/info