Dear group,
I'm encountering a strange issue which I almost think is a bug, but
perhaps I'm misunderstanding how $this->render() is supposed to work
in a controller.
In one of my controllers I need to save the output of $this->render()
to a variable. This works fine until you start saving renders in a
loop.
The problem lies in (or around, depending on your revision) line #733
of controller.php:
$this->output .= $View->render($action, $layout, $file);
It is concatenating the return value for render(), and thus every time
I save my render in a loop, the previous loop's data is there as well.
Is this a bug in controller.php, or a 'feature'? What are the
alternative methods of saving "parsed" view templates to a variable in
the controller for storage elsewhere?
Thank you,
Seth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---