Changeset 1056:b67f949a98f8 for inc/admin/prepend.php
- Timestamp:
- 12/09/12 03:12:34 (13 years ago)
- Branch:
- twig
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/prepend.php
r1013 r1056 376 376 } 377 377 378 # Creating template context 379 try { 380 $core->page = new dcTwigPage( 381 dirname(__FILE__).'/default-templates', 382 DC_TPL_CACHE.'/admtpl', 383 new dcAdminContext($core), 384 $core 385 ); 386 } catch (Exception $e) { 387 __error(__('Can\'t create template engine.') 388 ,$e->getMessage() 389 ,640); 390 } 378 # Add admin default templates path 379 $core->tpl->getLoader()->addPath(dirname(__FILE__).'/default-templates'); 380 # Set admin context 381 $_ctx = new dcAdminContext($core); 382 $core->tpl->addExtension($_ctx); 383 384 # --BEHAVIOR-- adminPrepend 385 $core->callBehavior('adminPrepend',$core,$_ctx); 391 386 ?>
Note: See TracChangeset
for help on using the changeset viewer.