Render a component in an action with Symfony 1.1+

By Romain Dorgueil
Outdated Content
This article is preserved for historical purposes and does not reflect current practices or technologies.

Here’s how to render a component from within an action in Symfony 1.1+:

<?php
public function executeBarfoo(sfWebRequest $request)
{
  return $this->renderComponent('my_module', 'my_component', array());
}