Re: Render view into a variable Cake 2.0

2012-04-19 Thread Adexe Rivera
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 wrote: > In controller: > $response = $this->render('view_nam

Render view into a variable Cake 2.0

2012-04-18 Thread Adexe Rivera
Hi, I'm trying get a view into a variable, with negative result. Someone knows how to do, please Thanks -- 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 rela

Saving hasMany through

2011-08-16 Thread Adexe Rivera
Hi, I'm new on Cakephp, I trying use hasMany Through relationships, after read this, http://book.cakephp.org/view/1650/hasMany-through-The-Join-Model. First of all, I have a model Subjects Subject hasMany Student Student belongsTo Subject Now the problem, with hasMany through. Course hasMany S