public function setTemplateByCode($templateCode)
    {
        $select = $this->loader->getModels()->getCommTemplateModel()->getSelect();
        $select->where('gct_code = ?', $templateCode);

        $template = $this->db->fetchRow($select);
        if ($template) {
            $this->setTemplate($template['gct_id_template']);
            return true;
        } else {
            return false;
        }
    }