Add the front-end of the page

This commit is contained in:
2018-12-12 15:04:47 +09:00
parent 3dfce942aa
commit 38c619544e
35 changed files with 8044 additions and 7966 deletions

View File

@ -4,21 +4,21 @@ namespace WebProjectFitness;
class Autoloader {
/**
* Enregistre notre autoloader
*/
static function register() {
spl_autoload_register( array( __CLASS__, 'autoload' ) );
}
/**
* Enregistre notre autoloader
*/
static function register() {
spl_autoload_register( array( __CLASS__, 'autoload' ) );
}
/**
* Inclue le fichier correspondant à notre classe
*
* @param $class string Le nom de la classe à charger
*/
static function autoload( $class ) {
if ( preg_match( '#^' . Config::NAMESPACE . '\\\(.+)$#', $class, $matches ) ) {
require 'src/' . str_replace( '\\', '/', $matches[1] ) . '.php';
}
}
/**
* Inclue le fichier correspondant à notre classe
*
* @param $class string Le nom de la classe à charger
*/
static function autoload( $class ) {
if ( preg_match( '#^' . Config::NAMESPACE . '\\\(.+)$#', $class, $matches ) ) {
require 'src/' . str_replace( '\\', '/', $matches[ 1 ] ) . '.php';
}
}
}