<?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!
<?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';