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
+38
View File
@@ -0,0 +1,38 @@
<?php
/**
* Created By : Erkan IŞIK
* Created Date : 2018-02-13
* Update Date : 2019-02-27
*/
class Category_model extends Model{
function new($post){
DB::insert('content_category',[
'name' => $post['name'],
'name_seo' => seo($post['name']),
'description' => $post['description'],
'parentId' => $post['parentId'],
'lang' => $post['lang']
]);
if (!DB::error()){redirect('blog/category');}
}
function update($post){
DB::where('id',$post['id'])->update('content_category',[
'name' => $post['name'],
'name_seo' => seo($post['name']),
'description' => $post['description'],
'parentId' => $post['parentId'],
'lang' => $post['lang']
]);
if (!DB::error()){redirect('blog/category');}
}
}