umkm-app/application/controllers/Umkm.php

26 lines
505 B
PHP

<?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);
}
}