public function actionIndex($id_plat)
 {
     $model = new CharacteristicPlatforms();
     if (isset($_POST['CharacteristicPlatforms'])) {
         //   echo "post";
         $model->attributes = $_POST['CharacteristicPlatforms'];
         $nome = $_POST['CharacteristicPlatforms']['id_characteristic'];
         // var_dump($nome);
         //$str = implode("", $nome);
         // print_r($str);
         $model->setAttribute('id_characteristic', $nome);
         $model->setAttribute('id_platform', $id_plat);
         if ($model->save()) {
             Yii::app()->user->setFlash(TbHtml::ALERT_COLOR_SUCCESS, '<strong>Fine!</strong> Sharing saved with sucess!');
             Yii::app()->controller->refresh();
             // $this->redirect('/mtcontrool/index/appUsers/index.php');
             //$this->refresh;
         }
     }
     $nomePlat = Platforms::model()->findByPk($id_plat);
     $this->render('index', array('id_plat' => $id_plat, 'model' => $model, 'nomePlat' => $nomePlat->name));
 }