Integrasi Framework CodeIgniter dengan template Stisla
- Kloning repo:
git clone https://github.com/rmalan/ci-stisla.git
- Controller baru:
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Blank extends CI_Controller
{
public function index()
{
$data['pageTitle'] = 'Blank'; //Judul Halaman
$data['pageContent'] = $this->load->view('blank', $data, TRUE); //View baru
$this->load->view('template/layout', $data);
}
}
- View baru:
<section class="section">
<div class="section-header">
<h1>Blank Page</h1>
</div>
<div class="section-body">
<!-- Isi Halaman HTML -->
</div>
</section>
CodeIgniter, please see the license agreement. Stisla is under the MIT License.