mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
29 lines
477 B
PHP
29 lines
477 B
PHP
<?php
|
|
namespace Demo\Controllers;
|
|
|
|
class DefaultController {
|
|
|
|
public function index() {
|
|
|
|
// implement
|
|
echo sprintf('DefaultController -> index (?fun=%s)', input()->get('fun'));
|
|
|
|
}
|
|
|
|
public function contact() {
|
|
|
|
echo 'DefaultController -> contact';
|
|
|
|
}
|
|
|
|
public function companies($id = null) {
|
|
|
|
echo 'DefaultController -> companies -> id: ' . $id;
|
|
|
|
}
|
|
|
|
public function notFound() {
|
|
echo 'Page not found';
|
|
}
|
|
|
|
} |