| | 273 | |
|---|
| | 274 | /** |
|---|
| | 275 | * Appends the result of the given component execution to the response content |
|---|
| | 276 | * and bypasses the built-in view system. |
|---|
| | 277 | * |
|---|
| | 278 | * This method must be called as with a return: |
|---|
| | 279 | * |
|---|
| | 280 | * <code>return $this->renderComponent('foo', 'bar')</code> |
|---|
| | 281 | * |
|---|
| | 282 | * @param string module name |
|---|
| | 283 | * @param string component name |
|---|
| | 284 | * |
|---|
| | 285 | * @return sfView::NONE |
|---|
| | 286 | */ |
|---|
| | 287 | public function renderComponent($moduleName, $componentName) |
|---|
| | 288 | { |
|---|
| | 289 | sfLoader::loadHelpers('Partial'); |
|---|
| | 290 | |
|---|
| | 291 | return $this->renderText(get_component($templateName, $componentName, $this->varHolder->getAll())); |
|---|
| | 292 | } |
|---|
| | 293 | |
|---|