modules/api/v2/controllers/UserAddressController.php
/**
     * Updates an existing UserAddress model.
     * If update is successful, the browser will be redirected to the 'view' page.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Updates an existing UserAddress model.
If update is successful, the browser will be redirected to the 'view' page.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Updates an existing UserAddress model . If update is successful the browser will be redirected to the ' view ' page . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionview($id)
    {
        $model = UserAddress::findOne($id);
        if (!$model instanceof UserAddress) {
            throw new NotFoundHttpException('Address doesn\'t exist.');
        }
        $model->is_primary_address = (string)$model->is_primary_address;
        return $model;
    }
public function actionview ( $ id ) { $ model = UserAddress :: findOne ( $ id ) ; if ( ! $ model instanceof UserAddress ) { throw new NotFoundHttpException ( 'Address doesn\'t exist.' ) ; } $ model -> is_primary_address = ( string ) $ model -> is_primary_address ; return $ model ; }
Updates an existing UserAddress model.
Updates an existing UserAddress model .