ZF1 version of the application converted for my ZendCon 2013 talk