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(); }
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(); }