logout() public method

public logout ( $id = '', $qsrt = null )
Esempio n. 1
0
<?php

$user = new UsersController();
$user->logout();
?>

<h1> U bent succesvol uitgelogd.</h1>
Esempio n. 2
0
    OrdersController::get_orders();
});
$routes->get('/kirjaudu', function () {
    UsersController::login_form();
});
$routes->post('/kirjaudu', function () {
    UsersController::login();
});
$routes->get('/rekisteroidy', function () {
    UsersController::add_form();
});
$routes->post('/rekisteroidy', function () {
    UsersController::add();
});
$routes->post('/kirjaudu_ulos', 'check_logged_in', function () {
    UsersController::logout();
});
$routes->get('/omat_tiedot', 'check_logged_in', function () {
    UsersController::edit_form();
});
$routes->post('/omat_tiedot', 'check_logged_in', function () {
    UsersController::edit();
});
$routes->get('/tuotteet/kebabit', function () {
    ProductController::get_products('Kebab');
});
$routes->get('/tuotteet/juomat', function () {
    ProductController::get_products('Juoma');
});
$routes->get('/tuotteet/pizzat', function () {
    ProductController::get_products('Pizza');