You're not doing anything with the output of twig. as far as the surrounding symfony application is concerned, you're executing the TestTwig action, and it's looking for a corresponding template. In your case you want to echo the twig output and then say: return sfView::NONE, or stick the twig output into the response directly..
Hope this helps, Daniel On Nov 19, 5:12 pm, ReynierPM <rper...@uci.cu> wrote: > Hi every: > I'm trying to use Twig on Symfony 1.4RC1. After read the docs I've wrote > this piece of code: > > function preExecute() { > require_once sfConfig::get('sf_lib_dir').'/twig/Autoloader.php'; > Twig_Autoloader::register(); > > } > > public function executeTestTwig() { > $loader = new > Twig_Loader_Filesystem(sfConfig::get('sf_web_dir').'/themes/default'); > $twig = new Twig_Environment($loader, array( > 'cache' => sfConfig::get('sf_cache_dir').'/templates' > )); > > $twig->loadTemplate('install.index.html'); > > } > > But surprise when I call the method I get this error: > > 500 | Internal Server Error | sfRenderException > The template "TestTwigSuccess.php" does not exist or is unreadable in "". > > What I'm doing wrong? > Cheers and thanks in advance -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=.