Esempio n. 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();
 }
Esempio n. 2
0
File: Html.php Progetto: 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();
 }