Created
July 23, 2021 15:32
-
-
Save Rizki36/9d501d1e9065e4f7d0b201f65b62c808 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
class Test extends CI_Controller | |
{ | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->load->library('slice'); | |
$this->load->helper('url'); | |
} | |
public function index() | |
{ | |
// passing variabel to view | |
$this->slice->with('name', 'John Doe'); | |
view('page'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment