Based on ZF2 application skeleton, this module skeleton provides foundation for working with the ZF2 Restful controller.
To learn how to setup Zend Framework 2 click here. Once setup, you can clone and place this skeleton under the "module/Main" folder & change zf2 project config file /config/application.config.php:
... 'modules' => array( 'Main', ), ...
Example URI implementations included:
- /info.json - Loads InfoController::getList() and renders through PostProcessor/Json.php
- /category.json - Loads CategoryController::getList() and renders through PostProcessor/Json.php
- /thumb.json/id1 - Loads ThumbController::get('id1') and renders through PostProcessor/Json.php