title: Activate StringLoader Twig Extension in Symfony
body: <p>I'm trying to active the <a href="http://twig.sensiolabs.org/doc/functions/template_from_string.html" rel="nofollow noreferrer">Twig StringLoader Extension</a> in a Symfony 2.3 project but just can't get the yaml-syntax right.</p>
  
  <p>This post refers to the <a href="https://stackoverflow.com/questions/9803353/render-content-from-string-database-and-generate-links-with-twig">answer by Heyflynn</a> on a post dealing with the exact same problem but providing a solution that just does not work (for me).</p>
  
  <p>Writing the following lines in my <em>app/config/config.yml</em> just gives me the exception below:</p>
  
  <pre><code># app/config/config.yml
  acme.twig.extension.loader:
  class:        Twig_Extension_StringLoader
  tags:
       - { name: 'twig.extension' }
  </code></pre>
  
  <p>Gives me this:</p>
  
  <blockquote>
    <p>FileLoaderLoadException: Cannot import resource ".../app/config/config.yml" from ".../app/config/config_dev.yml". (There is no extension able to load the configuration for "acme.twig.extension.loader" (in .../app/config/config.yml). Looked for namespace "acme.twig.extension.loader", found "framework", "security", "twig", "monolog", "swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "apy_data_grid", "<em>project</em>", "acme_demo", "web_profiler", "sensio_distribution")</p>
  </blockquote>
  
  <p>(I was already wondering about the <em>acme</em> appearence in <em>acme.twig.extension.loader</em> and replaced it with the name of the project bundle but that gives me the same exception again. Just cutting it off doesnt work either.)</p>
  
  <p>Please help!</p>