diff options
author | redmatrix <git@macgirvin.com> | 2016-05-20 19:11:14 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-20 19:11:14 -0700 |
commit | f4da365abdc1ce1da2dde1bb9798f58fc6dc1a9f (patch) | |
tree | 27994af3aec3533ae3fd801243a82f82efa0ac02 /boot.php | |
parent | b2f0d2d085c355010f1475269c4beb4fba7b07dc (diff) | |
download | volse-hubzilla-f4da365abdc1ce1da2dde1bb9798f58fc6dc1a9f.tar.gz volse-hubzilla-f4da365abdc1ce1da2dde1bb9798f58fc6dc1a9f.tar.bz2 volse-hubzilla-f4da365abdc1ce1da2dde1bb9798f58fc6dc1a9f.zip |
move template stuff to zotlabs/render
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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(); } |