Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Ocramius/RoutingExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Dynamic ZendFramework Routing via repository API

These examples show how to configure a custom route type to read from a repository service (which is array-backed for simplicity) and route to a custom controller that receives an already hydrated entity as a request parameter.

Installation:

  1. add following to your composer.json:

    {
        "repositories": [
            {
                "url": "https://github.com/Ocramius/RoutingExamples.git",
                "type": "git"
            }
        ],
        "require": {
            "ocramius/routing-examples": "dev-master"
        }
    }
  2. run composer update

  3. add "RoutingExamples" to the "modules" key in config/application.config.php.

  4. start a web server via php -S localhost:8080 -t public

  5. browse to http://localhost:8080/, then http://localhost:8080/home, then http://localhost:8080/contacts and then http://localhost:8080/team

About

📚 Dynamic ZendFramework routing examples (repository-backed routing)

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages