Skip to content

slayercode1/example_php_router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mon appli

Configurer les routes de l'application

// config/routes.php

<?php

return [
    "home" => "home.php",
    "about" => "about.php",
    "contact" => "contact.php",
    "services" => "services.php",
];
// config/config.php.php

<?php

define("TEMPLATE", "template");
define("TEMPLATE_PARTS", TEMPLATE . "/template_parts");
define('TEMPLATE_PAGES', TEMPLATE . "/pages");
define("CLASSES", "classes");

define('ROUTES', include 'routes.php');
define('DEFAULT_ROUTE', "home");
define('NOT_FOUND_ROUTE', "404");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors