Hello.

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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to