Sample code for reference for Zend Framework 2