title: Cakephp 3 multiple custom template formhelpers
body: <p>So I'm at work (working with sensitive data might I add for posterity's sake), and the powers that be decide we need to use the all powerful and least documented new tool by Cakephp 3.0 (beta at this time).</p>
  
  <p>Edit: My goal is to create several different templates for forms to call through the formhelper template or input methods. There really isn't much of an a good example for this.
  Customizing the Templates FormHelper Uses:
  As seen in the book(and nowhere else on the internet anywhere) the very short documentation is thus:
  <a href="http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html#customizing-the-templates-formhelper-uses" rel="noreferrer">http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html#customizing-the-templates-formhelper-uses</a></p>
  
  <p>The site says you can use the template method and then give a vague "use": </p>
  
  <pre><code>$myTemplates = [
      'inputContainer' =&gt; '&lt;div class="form-control"&gt;{{content}}&lt;/div&gt;',
  ];
  </code></pre>
  
  <p>$this->Form->templates($myTemplates);</p>
  
  <p>Then it says you can use the input() method for which it gives no example. 
  And last but not least the custom template FormHelper should allow you to "make" or "create" as many of these custom formhelpers as you wish, but they give no example use of how to do that!? lulwut? </p>
  
  <p>I can easily use it once like their example, but where's the power in a single custom template? That doesn't do me anygood.</p>
  
  <p>So by a new possible solution I try and get a new error.</p>
  
  <p>I get this error(within my view)(from the following code):</p>
  
  <p>Fatal Error
  Error: Class 'Configure' not found</p>
  
  <pre><code>//within bootstrap.php
  Configure::write('templates', [
      'shortForm' =&gt; [
          'formstart' =&gt; '&lt;form class="" {{attrs}}&gt;',
          'label' =&gt; '&lt;label class="col-md-2 control-label" {{attrs}}&gt;{{text}}&lt;/label&gt;',
          'input' =&gt; '&lt;div class="col-md-4"&gt;&lt;input type="{{type}}" name="{{name}}" {{attrs}} /&gt;&lt;/div&gt;',
          'select' =&gt; '&lt;div class="col-md-4"&gt;&lt;select name="{{name}}"{{attrs}}&gt;{{content}}&lt;/select&gt;    &lt;/div&gt;',
          'inputContainer' =&gt; '&lt;div class="form-group {{required}}" form-type="{{type}}"&gt;{{content}}    &lt;/div&gt;',
          'checkContainer' =&gt; '',],
      'longForm' =&gt; [
          'formstart' =&gt; '&lt;form class="" {{attrs}}&gt;',
          'label' =&gt; '&lt;label class="col-md-2 control-label" {{attrs}}&gt;{{text}}&lt;/label&gt;',
          'input' =&gt; '&lt;div class="col-md-6"&gt;&lt;input type="{{type}}" name="{{name}}" {{attrs}} /&gt;&lt;/div&gt;',
          'select' =&gt; '&lt;div class="col-md-6"&gt;&lt;select name="{{name}}"{{attrs}}&gt;{{content}}&lt;/select&gt;    &lt;/div&gt;',
          'inputContainer' =&gt; '&lt;div class="form-group {{required}}" form-type="{{type}}"&gt;{{content}}    &lt;/div&gt;',
          'checkContainer' =&gt; '',],
      'fullForm' =&gt; [
          'formstart' =&gt; '&lt;form class="" {{attrs}}&gt;',
          'label' =&gt; '&lt;label class="col-md-2 control-label" {{attrs}}&gt;{{text}}&lt;/label&gt;',
          'input' =&gt; '&lt;div class="col-md-10"&gt;&lt;input type="{{type}}" name="{{name}}" {{attrs}} /&gt;    &lt;/div&gt;',
          'select' =&gt; '&lt;div class="col-md-10"&gt;&lt;select name="{{name}}"{{attrs}}&gt;{{content}}&lt;/select&gt;    &lt;/div&gt;',
          'inputContainer' =&gt; '&lt;div class="form-group {{required}}" form-type="{{type}}"&gt;{{content}}    &lt;/div&gt;',
          'checkContainer' =&gt; '',]
  ]);
  
  //within my view
  &lt;?php
      $this-&gt;Form-&gt;templates(Configure::read('templates.shortForm')); 
  ?&gt;
  </code></pre>
  
  <p><strong>Old Update</strong>: I added </p>
  
  <pre><code>use "Cake\Core\Configure;" 
  </code></pre>
  
  <p>in my view and everything works great, but I would like to add this to the appropriate file in the hierarchy so that I don't have to add that to every view, </p>
  
  <p>that is unless of course it causes efficacy issues for the entire app as a whole. Does anyone know which file it should go in? Regards and TIA!  </p>
  
  <p><strong>Newest Update</strong>: I just figured it out. So simple! check my answer below! Hope this helped someone</p>