I’m really struggling over how I could call a function from within Yii’s Tabs Widget. The content of the tabs should be dynamic because what is on display depends on the button that was selected.
Here’s the code snippet for the widget
<?php
echo Tabs::widget([
'items'=> [
[
'label'=>'Properties',
'content'=> // content here should be dynamic, but I am able to only use a string ,
],
[
'label'=> 'Ext. Properties'
'content'=> // it should be dynamic here as well
],
[
'label'=>'History'
],
[
'label'=>'Preview'
],
],
]);
?>
Thanks for all your help