I’m trying to figure out how to render contents of tabs
In API documanettation…
$renderTabContent public property (available since version 2.0.1)
Whether to render the tab-content container and its content. You may set this property to be false so that you can manually render tab-content yourself in case your tab contents are complex.
public boolean $renderTabContent = true
This is what I’m using in my view file
if ($subscriptions){
foreach ($subscriptions as $subscription){
if ($subscription->publication->publication_type_id === 1){
$mags[] = $subscription->publication->publication_name;
}
if ($subscription->publication->publication_type_id === 2){
$cats[] = $subscription->publication->publication_name;
}
}
echo Tabs::widget([
'items' => [
[
'label' => 'BBR Magazines',
'renderTabContents' => false,
'content' => implode($mags),
'active' => true
],
[
'label' => 'Auction Catalogues',
'content' => implode($cats),
],
],
]);
}
Any suggestions as to how I can "format" those imploded arrays???