Educating the world

Our blog has over 10,000 readers a month

Category: "Yii Framework"

Error: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

May 19th, 2017
Recently had a problem with Yii2's migrate when trying to connect to a local database. [root@example.com yii-application]# ./yii migrate Yii Migration Tool (based on Yii v2.0.11.2) Error: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo… more »

Yii Migration Tool No such file or directory

February 10th, 2015
I develop under Windows when I'm and home and in the office but when I'm at out and about I develop on my Mac Book Pro. While both run XAMPP, I recently came across a difference between the Windows and Mac versions while I was using Yii2 Framework (but… more »

Checking if you are on the homepage

January 30th, 2015
The way to reference the default controller and the default action on that controller has changed. Essentially the defaultController in Yii might not be a controller, so it is now referred to as a route (i.e. defaultRoute) and the default Action on a… more »

Yii to Yii2

January 30th, 2015
The Yii Framework has had a new major release and while the API documentation for the new version 2 is a lot better, there doesn't seem to be an easy way to find out what the new way of doing something is. I'm setting this article up as blogglue in… more »

Debugging PHP in Eclipse

October 21st, 2014
This requires 2 parts. Firstly change the php.ini to include the xdebug sections. All the relevant information can be found in the article Setting up XDebug under XAMPP. Second create an Eclipse run configuration to connect to the remote server which is… more »