new pisilinux web sites

This commit is contained in:
Erkan IŞIK
2026-07-01 16:44:17 +03:00
commit b58488b586
21740 changed files with 2066209 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
/*
* Created By : Erkan IŞIK
* Created Date: 2018-01-26
* Update Date : 2018-01-26
*/
class Blog_model extends Model{
function content_list(){
return DB::where('icerik_tur','icerik','and')->where('icerik_durum','1')->orderBy('icerik_id','desc')->get('content')->result();
}
function label_list($data){
return DB::like('icerik_tag',$data)->get('content')->result();
}
function content($id){
$content = DB::where('id',$id)->get('content')->row();
$say = $content->hits + 1;
DB::where('id',$id)->update(
'content',[
'hits' => $say,
]);
return $content;
}
}