Hi there, Just replace the line:
return $this->renderComponent("product_comment", "showComment", array('comment' => $product_comment, 'class' => "hidden")); with: $text = $this->getComponent("product_comment", "showComment", array('comment' => $product_comment, 'class' => "hidden")); return $this->renderText($text); Cheers! -Imran On Jun 23, 12:15 am, vviippola <vviipp...@gmail.com> wrote: > Hi ppl, > > I'm going crazy with this issue, probably something trivial I'm not > able to figure out. > > I have a component which works fine when included on template using > include_component() > > However, when I do this for ajax calls I'm getting an error. > > if ($request->isXmlHttpRequest()) > { > return $this->renderComponent("product_comment", "showComment", > array('comment' => $product_comment, 'class' => "hidden")); > > } > > error_log: The template "Success.php" does not exist or is unreadable > in "" > > Serious debugging has taken place, but I'm just not able to figure > this out... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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=en