Pass Variables To View Yiistrap Tabs

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,

            )); ?>

I changed this in TbTabs.php


    /**

     * Normalizes the tab configuration.

     * @param array $tabs a reference to the tabs tab configuration.

     */

    protected function normalizeTabs($tabs)

    {

        $controller = $this->getController();

        if (isset($controller)) {

            foreach ($tabs as &$tabOptions) {

                $items = TbArray::getValue('items', $tabOptions, array());

                if (!empty($items)) {

                    $tabOptions['items'] = $this->normalizeTabs($items);

                } else {

                    if (isset($tabOptions['view'])) {

                        $view = TbArray::popValue('view', $tabOptions);

                        if ($controller->getViewFile($view) !== false) {

                            $tabOptions['content'] = $controller->renderPartial($view, $tabOptions['viewData'], true);

                        }

                    }

                }

            }

        }

        return $tabs;

    }

now I can pass different data for each tab