I’m trying to pass data to a view, viewData or data is not working, how should I do this?
<?php $tabs = array(); ?>
<?php foreach (Yii::app()->params['translatedLanguages'] as $l => $lang) :
if($l === Yii::app()->params['defaultLanguage']) $suffix = '';
else $suffix = '_'.$l;
?>
<?php $tabs[] = array('label' => $lang, 'view' => 'view1', 'viewData' => array('form' => $form, 'model' => $model)); ?>
<?php endforeach; ?>
The result should be 1 tab for every language with input fields in it
this is the yiistrap code for the tabs:
<?php $this->widget('bootstrap.widgets.TbTabs', array(
'tabs' => $tabs,
)); ?>