Monday, August 6, 2012

Re: Content blocks via controller

Why not using a view var? If you're goin to format the keywords you should use a Helper.

Att.,
--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil

Assando Sites - Curso online de CakePHP



On Mon, Aug 6, 2012 at 4:00 PM, André Luis <cavallari@live.com> wrote:
Hi people, i have a doubt, i am trying to create a content block but the data will be sent from a controller...

For example...

in layout.ctp i have: echo $this->fech('keywords');

But the keywords is an array sent by the controller.

Is it possible?

--
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

--
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

No comments: