Skip to content

ecxod/router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

router

Router for Ecxod Projects

php composer.phar require nikic/fast-route

cat .htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

cat src/konst/K.php (example)

const ROUTEN = [
      'root' =>         ['pfad' => '/',                 'name' => 'Index',        'proto' => ['GET']],
      'register' =>     ['pfad' => '/register.php',     'name' => 'Register',     'proto' => ['GET', 'POST']],
      'authenticate' => ['pfad' => '/authenticate.php', 'name' => 'Authenticate', 'proto' => ['GET']],
];

About

Router for Ecxod Projects

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages