<?php
namespace App\Controllers;

use App\Core\Controller;

class DebugController extends Controller {
    
    public function index() {
        echo "<h1>🔧 MVC Debug Information</h1>";
        echo "<style>body{font-family:Arial;padding:20px;} pre{background:#f4f4f4;padding:10px;}</style>";
        
        echo "<h2>Session Data:</h2>";
        echo "<pre>";
        print_r($_SESSION);
        echo "</pre>";
        
        echo "<h2>GET Data:</h2>";
        echo "<pre>";
        print_r($_GET);
        echo "</pre>";
        
        echo "<h2>POST Data:</h2>";
        echo "<pre>";
        print_r($_POST);
        echo "</pre>";
        
        echo "<h2>Server Data:</h2>";
        echo "<pre>";
        echo "REQUEST_URI: " . $_SERVER['REQUEST_URI'] . "\n";
        echo "SCRIPT_NAME: " . $_SERVER['SCRIPT_NAME'] . "\n";
        echo "PHP_SELF: " . $_SERVER['PHP_SELF'] . "\n";
        echo "</pre>";
        
        echo "<h2>Constants:</h2>";
        echo "<pre>";
        echo "APP_URL: " . APP_URL . "\n";
        echo "BASE_PATH: " . BASE_PATH . "\n";
        echo "APP_PATH: " . APP_PATH . "\n";
        echo "</pre>";
        
        echo "<p><a href='" . APP_URL . "/dashboard'>Go to Dashboard</a></p>";
        echo "<p><a href='" . APP_URL . "/login'>Go to Login</a></p>";
    }
}