index() public method

Show all discussions in a particular category.
Since: 2.0.0
public index ( string $CategoryIdentifier = '', $Page = '0' )
$CategoryIdentifier string Unique category slug or ID.
Beispiel #1
0
    HelloWorldController::hallinto();
});
$routes->post('/hallinto', function () {
    TopicController::searchTopicsMessages();
});
$routes->get('/', function () {
    HelloWorldController::index();
});
$routes->get('/kategoria', function () {
    HelloWorldController::kategoria();
});
$routes->get('/keskustelu', function () {
    HelloWorldController::keskustelu();
});
$routes->get('/foorumi', function () {
    CategoriesController::index();
});
$routes->get('/kategoria-:id', function ($id) {
    CategoriesController::category($id);
});
$routes->get('/kirjaudu', function () {
    UserController::login();
});
$routes->post('/kirjaudu', function () {
    UserController::login();
});
$routes->get('/kirjauduulos', function () {
    UserController::logout();
});
$routes->get('/keskustelu-:id', function ($id) {
    TopicController::messages($id);