aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 10244b0d0..a5aa3f7a1 100755
--- a/boot.php
+++ b/boot.php
@@ -908,16 +908,24 @@ class App {
/*
* register template engines
*/
+
+
+ spl_autoload_register('ZotlabsAutoloader::loader');
+
+ self::$meta= new Zotlabs\Web\HttpMeta();
+ $smarty = new Zotlabs\Render\SmartyTemplate();
+
$dc = get_declared_classes();
+// logger('classes: ' . print_r($dc,true));
+
foreach ($dc as $k) {
- if (in_array("ITemplateEngine", class_implements($k))){
+
+ if (in_array('Zotlabs\\Render\\TemplateEngine', class_implements($k))){
self::register_template_engine($k);
}
}
- spl_autoload_register('ZotlabsAutoloader::loader');
- self::$meta= new Zotlabs\Web\HttpMeta();
}