public function actionSMSCommandSetup() { $SMSCOMPort = new SMSCOMPort(); if ($_POST['setup_com']) { $SMSCOMPort->COM = $_POST['setup_com']; $SMSCOMPort->save(); } return $this->render('setup_sms_command', array('SMSCOMPort' => $SMSCOMPort)); }