Created
May 13, 2017 08:43
-
-
Save bigkiandi/be56b5116542fcad7b48fef25adf26c0 to your computer and use it in GitHub Desktop.
define and call your function in controller
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 | |
public function index() { | |
$data['kodeunik'] = $this->model_user->buat_kode(); // variable $kodeunik merujuk ke file model_user.php pada function buat_kode. paham kan ya? harus paham dong | |
$this->load->view('template/backend', $data); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment