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: 11 years ago
Size: 257 bytes


Class file image Download

require_once 'config.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