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
| Option | Meaning |
|---|---|
$replace | Field => value (values are developer HTML). |
$field_types | Field => form2 method that shows it (info, info_date...). |
legend, class | Title; classes. |
Example
- name
- Anna Koval
- [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