config/config.php
changeset 2 40769b11e94f
parent 0 4869aea77e21
child 7 3ed6f90e97d9
equal deleted inserted replaced
1:56e0dbd5c243 2:40769b11e94f
    13  * @return bool
    13  * @return bool
    14  */
    14  */
    15 function bfw_autoLoader($class) {
    15 function bfw_autoLoader($class) {
    16     $nsClass = str_replace('\\', '/', $class);
    16     $nsClass = str_replace('\\', '/', $class);
    17     $filename = sprintf('%s/classes/%s.php', TICKET_PATH, $nsClass);
    17     $filename = sprintf('%s/classes/%s.php', TICKET_PATH, $nsClass);
    18     $classPath = sprintf('classes/%s.php', str_replace('\\', '/', $nsClass));
    18     $classPath = sprintf('classes/%s.php', $nsClass);
    19 
    19 
    20     if (file_exists($filename)) {
    20     if (file_exists($filename)) {
    21         require_once "$classPath";
    21         require_once "$classPath";
    22 
    22 
    23         return true;
    23         return true;