Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Zend Framework SMD module with dto support
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
src/Smd
test
Module.php
README.md
autoload_classmap.php
autoload_function.php
autoload_register.php

README.md

Sample, skeleton module for use with the ZF2 MVC layer.

Sample For Rest Controllers

'smd' => array(
    'factories' => array(
        'navigation' => function($sl) {
            $params = array(
                'name' => 'testing',
                'target' => 'api/navigation',
                'params' => array(
                    0 => array(
                        'type' => 'string',
                        'name' => 'test'
                    ),
                ),
                'return' => 'array'
            );

            return new \Smd\Service\Rest($params, $sl);
        }
    ),
), 

Sample for Rest Controllers with Dto

'smd' => array(
    'factories' => array(
        'site' => function($sl) {
            return  new \Smd\Service\RestDto(
                'Site\Controller\Api\SiteController',
                'Site\Dto\Site',
                'api/site',
                $sl
            );
            return $service;
        }
    ),
), 
Something went wrong with that request. Please try again.