public function __construct() { /* * We add the resources before the template is included, otherwise the * layout resources never make it into the <head> section. */ Dispatcher::register('Ajde_Template', 'beforeGetContents', array($this, 'autoAddResources')); parent::__construct(); }