public function loadTemplateEngines()
    {
        if (!$this->engines_loaded) {
            Events::fireEvent('layoutLoadEngineEvent');

            // Load the engines provided in this file
            $this->registerEngine(new PHPEngine(), 'PHP', array('php'));
            $this->registerEngine(new JsonEngine(), 'JSON', array('json'));
            $this->registerEngine(new SmartyEngine(), 'Smarty', array('tpl'));
            $this->registerEngine(new LatteEngine(), 'Latte', array('latte'));
            $this->engines_loaded = true;
        }
    }