protected function findModel($id)
 {
     if (($model = Locations::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
 public function actionGetCityProvince($zipId)
 {
     $location = Locations::findOne($zipId);
     echo Json::encode($location);
 }