| .. | |||||
| back | |||||
| Admin.php | |||||
| Auth.php | |||||
| Blog.php | |||||
| Contact.php | |||||
| Home.php | |||||
| index.html |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/newsigniter/application/controllers/ |
Upload File : |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('identity_model', 'identity', true);
$this->load->model('banner_model', 'banner', true);
$this->load->model('posting_model', 'posting', true);
$this->load->model('category_model', 'category', true);
}
public function index()
{
$data['favicon'] = $this->identity->getIdentity();
$data['title'] = 'Home';
$data['banner'] = $this->banner->getBanner();
$data['beritaPilihan'] = $this->posting->getBeritaPilihan();
$data['lastNews'] = $this->posting->getLastNews();
$data['lastPost'] = $this->posting->getLastPost();
$data['category'] = $this->category->getCategory();
//$v = findObjectById('title','link1',$data['banner']);
$data['buku'] = array(
array('url'=>'https://dpmptsp.pekanbaru.go.id/publikasi/files/BUKU/buku%20saku%20perizinan.pdf','cover'=>'cover_buku_saku.jpg'),
array('url'=>'https://dpmptsp.pekanbaru.go.id/publikasi/files/BUKU/buku potensi dan peluang investasi 2024.pdf','cover'=>'cover_buku_potensi_dan_peluang_investasi_2024.png'),
array('url'=>'https://dpmptsp.pekanbaru.go.id/publikasi/files/BUKU/BUKU MPP 2021.pdf','cover'=>'COVER 1.jpg'),
array('url'=>'https://dpmptsp.pekanbaru.go.id/publikasi/files/BUKU/Buku%20Kajian%20Potensi%20Investasi%20dan%20Produk%20Unggulan%20kota%20Pekanbaru%202019.pdf','cover'=>'Buku3.png'),
array('url'=>'https://dpmptsp.pekanbaru.go.id/publikasi/files/BUKU/brosur%20MPP%20kota%20Pekanbaru.pdf','cover'=>'Buku1.png'),
array('url'=>'https://dpmptsp.pekanbaru.go.id/publikasi/files/BUKU/PELUANG%20BISNIS.pdf','cover'=>'Buku6.png')
);
$data['page'] = 'home';
$this->load->view('front/layouts/app', $data);
}
public function loadMore(){
$limit = 10;
$page = $limit * $this->input->post('page');;
$data['news'] = $this->posting->loadMoreData($page);
$this->load->view('front/pages/load_more', $data);
}
}
/* End of file Home.php */
| .. | |||||
| back | |||||
| Admin.php | |||||
| Auth.php | |||||
| Blog.php | |||||
| Contact.php | |||||
| Home.php | |||||
| index.html |