Answer the question
In order to leave comments, you need to log in
How to display categories in Accordion::widget?
Guys, I now have an output in the FAQ using Accordion::widget.
<?= Accordion::widget([
'items' => array_map(function ($item) {
return [
'label' => $item['name'],
'content' => $item['description']
];
}, $items),
]);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question