page de recher plus modifs vers un system de controllers

This commit is contained in:
2019-03-01 22:56:39 +01:00
parent b339e09082
commit 91806d4112
11 changed files with 294 additions and 54 deletions

View File

@ -0,0 +1,28 @@
<?php
namespace App\Controller;
class HomeController extends \App\Controller {
/**
* @route /^\/$/
*/
public function home() {
return file_get_contents(DIR."/html/index.html");
}
/**
* @route /^\/post\/[a-z0-9]+\/*$/
*/
public function post() {
return file_get_contents(DIR."/html/post.html");
}
/**
* @route /^\/search\//
*/
public function search() {
return file_get_contents(DIR."/html/search.html");
}
}