title: Define New Template Group in CI Template Library
body: <p>I've been trying to define a new template group in the codeigniter template library but I keep getting an error saying that group does not exist/has not been defined.  Below is the code that defines the default template group which is set to active.</p>
  
  <pre><code>$template['default']['template'] = 'templates/welcome';
  $template['default']['regions'] = array(
     'header' =&gt; array('content' =&gt; array("&lt;h1&gt;Adrian's Branch&lt;/h1&gt;")),
     'content',
     'footer' =&gt; array('content' =&gt; array('&lt;p id="copyright"&gt;0bytes&lt;/p&gt;'))
  );
  $template['default']['parser'] = 'parser';
  $template['default']['parser_method'] = 'parse';
  $template['default']['parse_template'] = FALSE;
  </code></pre>
  
  <p>I figure the same methods apply in defining a custom group by replacing 'default' with the name of my custom group name?</p>
  
  <p>In my controller I call...</p>
  
  <pre><code>$this-&gt;template-&gt;set_template('custom_template_name');
  </code></pre>
  
  <p>But this is not working?  Am I doing this right?</p>
  
  <p>The user guide can be found here: <a href="http://williamsconcepts.com/ci/codeigniter/libraries/template/reference.html" rel="nofollow">http://williamsconcepts.com/ci/codeigniter/libraries/template/reference.html</a></p>