示例#1
0
 public function __construct()
 {
     /*
      * We add the resources before the template is included, otherwise the
      * layout resources never make it into the <head> section.
      */
     Ajde_Event::register('Ajde_Template', 'beforeGetContents', array($this, 'autoAddResources'));
     parent::__construct();
 }
示例#2
0
文件: Html.php 项目: nabble/ajde
 public function __construct()
 {
     /*
      * We add the resources before the template is included, otherwise the
      * layout resources never make it into the <head> section.
      */
     Ajde_Event::register('Ajde_Template', 'beforeGetContents', [$this, 'autoAddResources']);
     Ajde_Event::register('Ajde_Application', 'onAfterDocumentRendered', [$this, 'setupExternalPageCache']);
     parent::__construct();
 }