Files
2026-07-01 16:44:17 +03:00

33 lines
715 B
PHP

<?php namespace Project\Controllers;
use DB,Cookie,Session,URI,URL;
/**
* Created By : Erkan IŞIK
* Created Date: 2017-12-24
* Update Date : 2020-07-26
*
*/
class Page extends Controller{
function main(){
Cookie::insert('returnlink', 'page');
$id = URI::get('page');
$url = URL::base()."sayfa/".$id."-".contentRow($id)->title_seo;
Masterpage::title(contentRow($id)->title);
Masterpage::meta([
'name:keywords' => contentRow($id)->label,
'name:description' => contentRow($id)->keywords,
]);
define('TITLE',contentRow($id)->title);
define('LINK',$url);
define('DESC',contentRow($id)->keywords);
define('IMG',content_image(contentRow($id)->content));
View::id($id);
}
}