public function actionCreatesupport()
 {
     $model = new SupportTicket();
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     $model->support_ticket_code = $model->supportCode();
     $model->customer_id = Yii::app()->user->customerId;
     $model->date_added = new CDbExpression('NOW()');
     if (isset($_POST['SupportTicket'])) {
         $model->attributes = $_POST['SupportTicket'];
         if ($model->save()) {
             $this->redirect(array('supports'));
         }
     }
     $this->render('create_support', array('model' => $model));
 }