Tuesday, June 10, 2014

Use CakeResponse in Helper.

I would actually suggest creating a view class for this rather than a helper.

Helpers are for helping in the rendering of specific elements, whereas view classes are the best for rendering types of content.

Take a look at my excel plugin to get an idea of a view class. You should be able to easily modify it for your needs. Available at https://github.com/dakota/CakeExcel

@Advantage+ spoken like somebody who hasn't used cake 3.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: