This works for me (in the controller):
$old_output = $this->output;
$this->output = '';
$this->render(ACTION, LAYOUT);
$new_output = $this->output;

On Jan 9, 7:40 pm, mmm <min...@gmail.com> wrote:
> hi group,
> i wounder how can i render content to buffer, what i have so far is:
>
> ob_start();
> $this->controller->render(null, $this->layout, $view);
> $html_msg = ob_get_contents();
> ob_end_clean();
>
> however $this->controller->render() always prints content directly to
> the browser. my cakephp version is 1.2.0.7962, any ideas?
>
> thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to