Add my template project
This commit is contained in:
7
template/route.php
Normal file
7
template/route.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if(__URI__ == '/' || in_array(__URL__[0], ['index', 'route', 'header', 'footer']))
|
||||
header('Location: /main');
|
||||
elseif(file_exists(__TD__.__URL__[0].'.php'))
|
||||
require __TD__.__URL__[0].'.php';
|
||||
else
|
||||
header('Location: /');
|
Reference in New Issue
Block a user