remove custom DTC setup and fixes for customexception

This commit is contained in:
Joey Kimsey
2024-08-20 06:29:45 -04:00
parent 1d71b4fd13
commit ea7ea1286c
2 changed files with 7 additions and 24 deletions

View File

@ -12,6 +12,7 @@
namespace TheTempusProject\Houdini\Classes;
use TheTempusProject\Canary\Bin\Canary as Debug;
use TheTempusProject\Canary\Classes\CustomException;
class Views extends Template {
public static $additionalLocations = [];
@ -34,7 +35,7 @@ class Views extends Template {
if ( !empty( $out ) ) {
self::$content .= $out;
} else {
// new CustomException( 'view', $viewName );
new CustomException( 'view', $viewName );
}
}
@ -96,7 +97,7 @@ class Views extends Template {
}
}
// @todo - this would be awesome, if i actually caught the exception anywhere :/
// throw new CustomException('simpleView', $path);
new CustomException('simpleView', $path);
return false;
}