PHP Classes

File: documentor/controller_only.php

Recommend this page to a friend!
  Classes of Mark Rolich   PHP URL Router Class   documentor/controller_only.php   Download  
File: documentor/controller_only.php
Role: Example script
Content type: text/plain
Description: Documention generator files
Class: PHP URL Router Class
Match URLs with routes for controllers and actions
Author: By
Last change: Update of documentor/controller_only.php
Date: 4 months ago
Size: 199 bytes
 

Contents

Class file image Download
<?php
$router
= new Bike\Router();

$router->add('controller-only',
    array(
       
'method' => 'GET, POST',
       
'route' => '/controller'
   
)
);

$result = $router->match('GET', '/news');
?>