public function Run($action, $args) { $action = strtolower($action); if ($action == 'index') { userController::index(); } elseif ($action == 'login') { userController::login(); } elseif ($action == 'new') { userController::newUser(); } elseif ($action == 'logout') { userController::logout(); } elseif ($action == 'view') { userController::view((int) $args[0]); } }
} else { if ($act == 'report_zakat_fitrah') { $report->viewReportZakatFitrah(); } else { if ($act == 'report_zakat_mal') { $report->viewReportZakatMal(); } else { echo "Halaman Tidak Tersedia"; } } } } } else { if ($page == 'user') { if ($act == '') { $user->view(); } else { if ($act == 'tambah_user') { $user->viewInsert(); } else { if ($act == 'edit_user') { $user->viewEdit($id); } else { if ($act == 'hapus_user') { $user->delete($id); } else { echo "Halaman Tidak Tersedia"; } } } }