Have problem about goBack()

I need update item by checkbox and click submit and send to actionUpdateItems




public function actionUpdateItems()

	{

		if(isset($_GET['pageSize']))

		{

				Yii::app()->user->setState('pageSize', (int)$_GET['pageSize']);

				unset($_GET['pageSize']);

		}

		// allow POST request only

		if(Yii::app()->request->isPostRequest)

		{

			$status = $_POST['ddlStatus'];

			$chkPack = $_POST['chkPack'];

			$currentday = date("Y-m-d"); //2012-02-08

			$currenttime = date("H:i:s");

			$orderid = $_POST['order-id'];

			$select=!empty($_GET['op']) && $_GET['op']=='selected' ? 1 : 0;

			

			if($status==='AP')

			{

				if($_POST['chkPack'])

				{

					Coin::model()->updateByPk($_POST['order-id'], array('PackD'=>$currentday, 'PackT'=>$currenttime,'SendD'=>$currentday, 'SendT'=>$currenttime, 'Doc_Flow'=>'S'));

				}

				else

				{

					Coin::model()->updateByPk($_POST['order-id'], array('PackD'=>$currentday, 'PackT'=>$currenttime, 'Doc_Flow'=>'P'));

				}

			}

			elseif ($status==='P')

			{

				Coin::model()->updateByPk($_POST['order-id'], array('SendD'=>$currentday, 'SendT'=>$currenttime, 'Doc_Flow'=>'S'));

			}

			elseif ($status==='S')

			{

				Coin::model()->updateByPk($_POST['order-id'], array('Doc_Flow'=>'T'));

			}

			

			//Coin::model()->updateByPk($orderid, array('PackD'=>$currentday, 'PackT'=>$currenttime,'SendD'=>$currentday, 'SendT'=>$currenttime, 'Doc_Flow'=>'S'));

			

			// if AJAX request, we should not redirect the browser

			if(!isset($_GET['ajax']))

			{

				if(!$this->goBack())

					$this->redirect(array('index'));

				else

					$this->goBack();

			}

		}

		else

		{

			throw new CHttpException(400, 'Invalid request. Please do not repeat this request again.');

		}

	}



I test run on my localhost (windows7, php5.3, mssql2000). Everything is ok. But if I deploy to server(windows2000, php5.3, mssql2000). It show error “CoinController and its behaviors do not have a method or closure named “goBack”.”. After i add method goBack() in class. It is not show error but actionUpdateItems not work instead. :(

Can i help me? Thank you for your advise.

I would suspect 2 things first.

  1. CoinController.php in the server is not updated to the latest version.

… including problem regarding the caching mechanism(if any) on the server

  1. letter casing problem of ‘goBack’ and ‘GoBack’