new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user