funcional

This commit is contained in:
lizandrogd
2026-01-12 15:54:04 -05:00
parent 4b7bcb6924
commit 50fc690b1b
17 changed files with 2089 additions and 130 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
require_once 'config/config.php';
$db = Database::getInstance();
$db->query(
"INSERT INTO message_templates (name, template_name, language_code, status) VALUES (?, ?, ?, ?)",
['Hello World Template', 'hello_world', 'en_US', 'approved']
);
echo "✅ Plantilla agregada exitosamente\n";
// Verificar
$stmt = $db->query("SELECT template_name, language_code, status FROM message_templates");
$templates = $stmt->fetchAll();
foreach ($templates as $template) {
echo "{$template['template_name']} ({$template['language_code']}) - {$template['status']}\n";
}
?>