📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
tarimscripti.demodesign.com.tr
/
application
/
controllers
📝
GalleryController.php
← Geri Dön
<?php class GalleryController extends CI_Controller { public $module = 'gallery'; public function index() { $this->load->model('gallery'); $this->lang->load('modules/gallery'); $galleries = array(); $pagination = null; $galleryCount = $this->gallery->count(); if ($galleryCount > 0) { $config = array( 'base_url' => clink(array('@gallery')), 'total_rows' => $galleryCount, 'per_page' => 10 ); $this->load->library('pagination'); $this->pagination->initialize($config); $galleries = $this->gallery->all($this->pagination->per_page, $this->pagination->offset); $pagination = $this->pagination->create_links(); } $this->load->view('master', array( 'view' => 'gallery/index', 'galleries' => $galleries, 'pagination' => $pagination, )); } public function view($id) { $this->load->model('gallery'); $this->lang->load('modules/gallery'); if (! $gallery = $this->gallery->findId($id)) { show_404(); } $this->site->set('metaTitle', $gallery->title); $this->site->set('ogType', 'article'); $this->site->set('ogTitle', $gallery->title); $this->site->set('ogImage', uploadPath($gallery->image, 'gallery')); $this->load->view('master', array( 'view' => 'gallery/view', 'gallery' => $gallery )); } }
💾 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