Skip to content

A Zend Framework 2 module skeleton that works with the RestfulController

Notifications You must be signed in to change notification settings

jeanlinux/ZF2-Restful-Module-Skeleton

 
 

Repository files navigation

ZF2 Restful Module Skeleton

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

About

A Zend Framework 2 module skeleton that works with the RestfulController

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published