PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Orkhan   Router Class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Router Class
Extract actions defined by URL patterns
Author: By
Last change:
Date: 13 years ago
Size: 257 bytes
 

Contents

Class file image Download
<?php

require_once 'config.class.php';
require_once
'router.class.php';

$router = Router::getInstance();

$controller = $router->path[0]; // 0 - controller
$method = $router->path[1]; // 1 - model method

// 2,3,4 and etc. other parameters

?>