File "admin-blog-articles-delete.inc.php"
Full Path: /srv/www/www.cadoro.it/src/controllers/admin-blog-articles-delete.inc.php
File size: 436 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
$article = models\BlogArticle::get_by_id($article_id);
if (!$article) {
not_found();
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$article->delete();
header("Location: " . BASE_URL . "/admin/blog-articles");
exit;
}
$smarty->assign("article", $article);
$smarty->assign("menu", "content");
$smarty->assign("submenu", "blog-articles");
$smarty->display("admin-blog-articles-delete.tmpl");
?>