Wednesday, February 2, 2011

Get current response type in helper (Cake 2.0-dev)

hello.

i'm refactoring my Helpers to comply with Cake 2.0

i'm having problem with my TidyHelper.
As stated by his name this helper uses Tidy to clean up the output
HTML.
The problem comes when my app renders a PDF, a CSV or any document !=
"text/html".

so... is there a way to get CakeResponse::type() in helper, other than
brutally, manually, load that class?

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