Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onAfterRender()
- {
- // get the original buffer
- $buffer = JResponse::getBody();
- // replace this with that...
- $replace = 'foo';
- $with = 'bar';
- $buffer = str_replace( $replace, $with, $buffer );
- // write the changes back to the buffer
- JResponse::setBody($buffer);
- }
Add Comment
Please, Sign In to add comment