1. 06 Apr, 2011 1 commit
  2. 05 Apr, 2011 2 commits
  3. 04 Apr, 2011 3 commits
    • Fabien Potencier's avatar
      updated doc and README file · 628714a2
      Fabien Potencier authored
      628714a2
    • Fabien Potencier's avatar
      updated vendors · 8aa2818f
      Fabien Potencier authored
      8aa2818f
    • Fabien Potencier's avatar
      Merge remote branch 'igorw/docs' · c61908b3
      Fabien Potencier authored
      * igorw/docs:
        [docs] note that twig is not included
        [docs] add Extension suffix to extension titles
        [docs] some documentation for the UrlGeneratorExtension
        [docs] better examples for the extensions chapter
        [docs] remove reference to symfony_bridges in TwigExtension docs
        [docs] move extension documentation to sub-directory
        [docs] remove _exts
        [docs] more on routes and twig
        [docs] initial documentation draft
      c61908b3
  4. 03 Apr, 2011 7 commits
  5. 02 Apr, 2011 3 commits
  6. 01 Apr, 2011 2 commits
  7. 31 Mar, 2011 1 commit
  8. 30 Mar, 2011 2 commits
  9. 29 Mar, 2011 6 commits
  10. 28 Mar, 2011 4 commits
    • Fabien Potencier's avatar
    • Fabien Potencier's avatar
      removed unneeded code · f7550e6b
      Fabien Potencier authored
      f7550e6b
    • Fabien Potencier's avatar
      added TranslationExtension · de9df3de
      Fabien Potencier authored
      Usage:
      
      $app = new Application();
      $app->register(new TranslationExtension(), array(
          'translation.class_path' => '...',
      ));
      
      $app['translator.messages'] = array(
          'en' => array(
              'apple' => 'apple',
          ),
          'fr' => array(
              'apple' => 'pomme',
          ),
      );
      
      $app['locale'] = 'fr';
      
      echo $app['translator']->trans('apple');
      
      If you use the Symfony Bridge extension, some tags and filters are also
      automatically available in templates:
      
      $templates = array(
          'index' => '{% trans %}apple{% endtrans %}'
      );
      de9df3de
    • Fabien Potencier's avatar
      added a SymfonyBridgesExtension · b550703b
      Fabien Potencier authored
      For now, it allows the Twig extension to register the Routing Twig extension:
      
      $app = new Application();
      $app->register(new SymfonyBridgesExtension(), array(
          'symfony_bridges.class_path' => '...',
      ));
      $app->register(new UrlGeneratorExtension());
      $app->register(new SessionExtension());
      $app->register(new TwigExtension(), array(...));
      
      You can now use {{ path() }} in templates to generate URLs.
      
      The order of registration of the extensions is significant.
      b550703b
  11. 27 Mar, 2011 9 commits