Berikut ini caranya :
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { public function __construct(){ parent::__construct(); } public function index() { if(empty($_SESSION['smk_admin'])){ redirect(base_url('index.php/admin/login')); }else{ $d['title']='Admin'; $d['judul']='Home'; $d['body']='admin/awal'; $this->load->view('template/admin',$d); } } }
0 komentar
Posting Komentar