Re: Render view into a variable Cake 2.0
Thank you, stork
After many combinations, I solved with this lines in controller
$view = new View($this, false);
$view->layout = 'pdf';
$html = $view->element('ELEMENT');
But will try your suggestion
Regards
On 19 abr, 09:21, stork <lubomir.st...@gmail.com> wrote:
> In controller:
> $response = $this->render('view_name');
> $content = $response->body();
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home