In Yii, How to get ip address?
To get the IP address of a user within the Yii Framework, the following code can be used:
You can call this code from anywhere within your Yii application.
This information was frequently asked during Yii interview questions for experienced professionals.
BY Best Interview Question ON 31 Jan 2019