27 lines
568 B
PHP
27 lines
568 B
PHP
|
<?php
|
||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
|
||
|
class Dashboard extends CI_Controller {
|
||
|
|
||
|
public function __construct()
|
||
|
{
|
||
|
parent::__construct();
|
||
|
$this->load->model("UserModel");
|
||
|
$this->load->model("ProdukModel");
|
||
|
$this->load->model("UmkmModel");
|
||
|
|
||
|
}
|
||
|
|
||
|
public function index()
|
||
|
{
|
||
|
|
||
|
$data['produk'] = $this->ProdukModel->getThree();
|
||
|
$data['umkm'] = $this->UmkmModel->getThree();
|
||
|
$data['user_logged'] = $this->session->userdata('user_logged');
|
||
|
$this->load->view('dashboard',$data);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|