Commit b1fc66bc authored by Lukáš Bachleda's avatar Lukáš Bachleda

Autoloader

parent 3cc6b14c
Pipeline #21899 canceled with stages
<?php
mb_internal_encoding("UTF-8");
\ No newline at end of file
mb_internal_encoding("UTF-8");
function autoLoaderEngine($class)
{
if (preg_match('/Controller$/', $class))
require("controllers/" . $class . ".php");
else
require("models/" . $class . ".php");
}
spl_autoload_register("autoLoaderEngine");
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment