mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
refactor: extract templates from public/
- Created /templates for main site (header.php, footer.php)
- Created /templates/admin for admin section (head.php, footer.php)
- Removed /public/includes and /public/admin/inc
- Updated all references in code and docs
- Tests passing ✅
Cleaner separation: /public only contains web-accessible files (PHP entry points + assets)
This commit is contained in:
@@ -25,7 +25,7 @@ if (php_sapi_name() === 'cli-server') {
|
||||
|
||||
// Simple helper function for including templates
|
||||
function include_template($name) {
|
||||
$path = APP_ROOT . '/public/includes/' . $name;
|
||||
$path = APP_ROOT . '/templates/' . $name;
|
||||
if (file_exists($path)) {
|
||||
include $path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user