Thursday, August 23, 2012

Re: Content blocks via controller

I will explain a little bit better...

I need to create a content block to use in my layout, for example...

echo $this->fetch('my_custom_content');

BUT, the data for this my_custom_content comes from a Component, for example in AppController: public $components=array('MyCustomComponent'); AND this component get the data from the database through a Model...

Is it possible?

--
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

No comments: