umkm-app/application/controllers/Dashboard.php

27 lines
568 B
PHP
Raw Normal View History

2021-09-20 17:51:31 +07:00
<?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);
}
}