Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHP library for Dispatch to controller class from PATH_INFO

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
Dispatcher library for PHP.

This module can dispatch to controller class or action class from PATH_INFO.

ex)
  <?php
  require_once 'Net/URL/Dispatcher.php';
  $dispatcher = new Net_URL_Dispatcher();
  $dispatcher->connect(':controller/:action/*params')
             ->dispatch('/path/to/directory');


  <?php
  class SampleController extends Net_URL_Dispatcher_Controller
  {
        public function fooAction()
        {
            echo $this->getParam('bar');  // baz
        }
  }


System requirement
  PHP 5.2
  PHPUnit
  Net_URL_Mapper
Something went wrong with that request. Please try again.