// Contoh pada CodeIgniter 3 public function index() { // Mengambil data produk dari model lama Anda $data['produk'] = $this->M_produk->get_all_products(); // Memanggil template baru secara berurutan $this->load->view('layout/header'); $this->load->view('halaman_utama', $data); // Ini file konten tengahnya $this->load->view('layout/footer'); }

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/kingkata/public_html/new/application/controllers/Home.php:10)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/kingkata/public_html/new/index.php
Line: 315
Function: require_once

404 Page Not Found

404 Page Not Found

The page you requested was not found.