-
-
Save volter9/ea500f5dd50f5b2a3e07 to your computer and use it in GitHub Desktop.
2-cms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$view = preg_replace('/[^a-z]/', '', $_SERVER['REQUEST_URI']) ?: 'index'; | |
require __DIR__ . '/layout.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<?php require __DIR__ . '/views/' . $route . '.php'; ?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment