Example #1
0
 public function actionPrint($id)
 {
     echo Article::getArticleById($id);
     return true;
 }
Example #2
0
<?php

header('Content-Type: text/html; charset=utf-8');
require "../inc/common.php";
$id = $_GET["artId"];
$article = new Article();
$row = $article->getArticleById($id);
?>

<!DOCTYPE html>
<html>

<head>
	<title><?php 
echo $row['Title'];
?>
 από το Κρητών Δρώμενα</title>
	<meta name="description" content="<?php 
echo $row['MetaDescription'];
?>
">
	<meta name="keywords" content="Κρητικές εκδηλώσεις, δρώμενα και γλέντια">
	<meta name="page-topic" content="Κρητικές εκδηλώσεις, κείμενα Κρητικής κουλτούρας.">
	<?php 
require 'common_metas.php';
?>
</head>

<body>
	<?php 
require 'header.php';
Example #3
0
<?php

include_once 'App.php';
$id = Http::getParam('id');
if (intval($id) <= 0) {
    header('location:/index.php');
    exit;
}
$id = intval($id);
$article = Article::getArticleById($id);
if ($article === false) {
    header('location:/index.php');
    exit;
}
require_once 'tpl/d.php';