Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Login extends Controller
- {
- public function index()
- {
- $data['judul'] = 'Halaman Login';
- $this->view('login/index', $data);
- }
- public function signin()
- {
- if ($_POST) {
- if ($this->model('Bemstmik_model')->cekDataLogin($_POST) > 0) {
- header('Location: ' .BASEURL. 'dashboard');
- } else {
- header('Location: ' .BASEURL. 'login');
- }
- } else {
- echo "Username dan Password tidak boleh kosong!";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement