add publick landing page

This commit is contained in:
2021-09-20 17:51:31 +07:00
parent b42ee3ba25
commit ef7a10356f
18 changed files with 302 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
<?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);
}
}