Files
whatsapp/add_hello_world.php
2026-01-12 15:54:04 -05:00

20 lines
581 B
PHP

<?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";
}
?>