Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 3 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

?>