<?php
require_once __DIR__ . '/../config/config.php';
$db = Database::getInstance();
$t = $db->fetch('SELECT id, name FROM message_templates LIMIT 1');
if (!$t) { echo "No templates found\n"; exit(1); }
print_r($t);
