mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
a8620cbc70
- 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';
|
|
}
|
|
|
|
} |