📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
tarimscripti.demodesign.com.tr
/
application
/
models
📝
Product.php
← Geri Dön
<?php class Product extends CI_Model { public function all($id, $limit = null, $offset = null) { if ($limit != null) { $this->db->limit($limit, $offset); } $result = $this->db ->from('products') ->where('categoryId', $id) ->where('language', $this->language) ->order_by('id', 'desc') ->get() ->result(); return $result; } public function count() { return $this->db ->from('products') ->where('language', $this->language) ->count_all_results(); } public function findId($id) { $result = $this->db ->from('products') ->where('id', $id) ->get() ->row(); $result->images = $this->db ->from('product_images') ->where('productId', $id) ->get() ->result(); return $result; } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula