Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

PHP Tidy before sending the Output


Go to End


2 Posts   1844 Views

Avatar
stefant42

Community Member, 14 Posts

2 April 2010 at 12:07am

Edited: 02/04/2010 12:07am

Hiho,

one short question. How can i parse/render/cleanup the complete output before Silverstripe sends to Client/Browser?

For Example, i want to cleanup the generated HTML with PHP Tidy.

Regards from Germany,

Stefan

Avatar
Hamish

Community Member, 712 Posts

3 April 2010 at 11:36am

I guess you have to modify ssviewer.. but why do you need tidy? 95% of your html lives in static template files - it will be very inefficient to parse and tidy the same responses when you could just fix your templates.