Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

router php

<?php 

$route = $_GET['p'];
    $routes=[
        'contact'=>'views/contacts.php',
    ];
    require($routes[$route]);
?>
 
PREVIOUS NEXT
Tagged: #router #php
ADD COMMENT
Topic
Name
3+3 =