Base d'un site web

This commit is contained in:
Sanchez
2017-04-14 14:31:29 +02:00
committed by mathieu
parent 21c5a759fd
commit e761ff7c5a
29 changed files with 8571 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?php
namespace base\Controller\Site;
class SiteRouter {
/**
* SiteRouter constructor.
* @param $pages
*/
public function __construct($pages) {
set_error_handler('errorHandler');
if ($pages[0] == '') {
new Index();
} else {
new SiteError(404);
}
}
}
?>