index() public method

public index ( )
Beispiel #1
0
<?php

function check_logged_in()
{
    BaseController::check_logged_in();
}
$routes->get('/', 'check_logged_in', function () {
    // HelloWorldController::index();
    TodoController::index();
});
$routes->get('/hiekkalaatikko', function () {
    HelloWorldController::sandbox();
});
$routes->get("/reminders", 'check_logged_in', function () {
    TodoController::index();
});
$routes->get("/edit_reminder", 'check_logged_in', function () {
    HelloWorldController::editReminder();
});
$routes->get("/register", function () {
    HelloWorldController::register();
});
$routes->post('/reminders', 'check_logged_in', function () {
    TodoController::store();
});
$routes->get('/reminders/class/:name', 'check_logged_in', function ($name) {
    ClassController::index($name);
});
$routes->get('/:id/edit_reminder', 'check_logged_in', function ($id) {
    TodoController::edit($id);
});