Tidak muncul apa-apa

Koding Model



<?php

class Events_model extends CI_Model
{
    function list_product()
    {
        $product = $this->db->get('bf_stock');
        return $product;
    }

    function get_product($id_product)
    {
        return $this->db->get_where('bf_stock', array('id_produk' => $id_product));
    }
}

Koding Controller



<?php

defined('BASEPATH') || exit('No direct script access allowed');

class Event extends CI_Controller
{
    public function index()
    {
        $this->output->enable_profiler($this->settings_lib->item('site.show_front_profiler')==1?TRUE:FALSE);
		$this->load->library('users/auth');
		$this->set_current_user();
		$this->load->helper("rupiah");

		$new_arival = $this->post_model->get_post_categori("","produk",9,0,"id_post","desc",array(),"");
		Template::set("new_arival",$new_arival);

		$most_popular = $this->post_model->get_post_categori("","produk",9,0,"post_read","desc",array(),"");
		Template::set("most_popular",$most_popular);

		$diskon = $this->post_model->get_post_categori("","produk",9,0,"id_post","desc",array(),"","yes");
		Template::set("diskon",$diskon);

		$week = $this->post_model->get_weeks_order("","produk",8,1,"id_post","desc",array(),"","");
		Template::set("week",$week);

		$week_1 = $this->post_model->get_weeks_order("","produk",1,0,"id_post","desc",array(),"","");
		Template::set("week_1",$week_1);

		$get_brand_banner = $this->terms_model->get_brand("brand",25,0,"id_terms","desc",array());
		Template::set("get_brand_banner",$get_brand_banner);

        $this->load->view('events/event_ohanna');
		Template::render();
    }
}

Koding Template View



<?php echo theme_view('header'); ?>

<section class="content">
    <h1>Event Ohanna</h1>
</section>

hasilnya gini bro :( nge blank putih

ada yang tau kenapa?

avatar Chata
@Chata

118 Kontribusi 19 Poin

Dipost 6 tahun yang lalu

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban