Beispiel #1
0
<?php

require __DIR__ . '/models/news.php';
if (isset($_GET['id'])) {
    $oneNews = News_getOne($_GET['id']);
    include __DIR__ . '/views/oneNews.php';
    die;
}
header('Location: /views/errorPage.php');
//HELLO!
Beispiel #2
0
<?php

/**
 * Created by PhpStorm.
 * User: Alex Sandiyarov
 * Date: 10.12.15
 * Time: 21:00
 */
require __DIR__ . '/models/news.php';
$item = News_getOne($_GET['id']);
include __DIR__ . '/views/news_one.php';