mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-16 02:30:09 +03:00
- Simplified exception-handling (see demo project for examples). - Optimised sample-project. - Optimised and added further unit-tests. - Optimised and bugfixes.
29 lines
437 B
PHP
29 lines
437 B
PHP
<?php
|
|
namespace Demo\Controllers;
|
|
|
|
class DefaultController {
|
|
|
|
public function index() {
|
|
|
|
// implement
|
|
echo 'DefaultController -> index';
|
|
|
|
}
|
|
|
|
public function contact() {
|
|
|
|
echo 'DefaultController -> contact';
|
|
|
|
}
|
|
|
|
public function companies($id = null) {
|
|
|
|
echo 'DefaultController -> companies -> id: ' . $id;
|
|
|
|
}
|
|
|
|
public function notFound() {
|
|
echo 'Page not found';
|
|
}
|
|
|
|
} |