umkm-app/application/controllers/Umkm.php

26 lines
505 B
PHP
Raw Permalink Normal View History

2021-09-21 15:19:35 +07:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Umkm extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model("UserModel");
$this->load->model("ProdukModel");
$this->load->model("UmkmModel");
}
public function index()
{
$data['listumkm'] = $this->UmkmModel->getUmkm();
$data['user_logged'] = $this->session->userdata('user_logged');
$this->load->view('umkm',$data);
}
}