i have this little helper that works ok with standard HTML pages but
it screws up all my PDF reports
class TidyHelper extends AppHelper {
function __construct() {
ob_start();
}
function __destruct() {
$output = ob_get_clean();
if(class_exists("Tidy")) {
//here's the tidy code
}
echo $output;
}
}
what can i do to disable this helper when the layout = "PDF"?
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment