funcional
This commit is contained in:
@@ -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";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user