Skip to content

Instantly share code, notes, and snippets.

@mirjalal
Forked from ertankayalar/yii-get-user-ip-address.php
Last active August 29, 2015 14:06
<?php
$newOrder->ip = Yii::app()->request->userHostAddress;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment