News

De 404 route wordt geregeld door de Controler class:
library\mvc\Controller.class.php
$path = MyHelpers::UrlContent("~/views/shared/_404.php");


class MyHelpers staat hier:
library\core\MyHelpers.class.php


// De afhandeing van URL gebreurt hier.

public static function UrlContent($path, $sub='application'){
if(self::startsWith($path, '~')){
$path = str_replace('/', DS, $path);
$appPath = ROOT . DS . $sub . (self::startsWith($path, '~/') ? '' : DS);
$result = str_replace('~', $appPath, $path);
$result = str_replace(DS.DS, DS, $result);
//die($result);
return $result;
}else{
return $path;
}
}
}