Created
July 30, 2010 08:58
-
-
Save rummelonp/500188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class sfFlashRenderer extends FlashRenderer | |
{ | |
public function render($context = null) | |
{ | |
if (count($this->replaces) > 0) { | |
$this->flash = self::rewrite($this->flash, $this->replaces); | |
} | |
if (is_null($context)) { | |
$context = sfContext::getInstance(); | |
} | |
$response = $context->getResponse(); | |
$response->setHttpHeader('Content-Length', strlen($this->flash)); | |
$response->setContentType('application/x-shockwave-flash'); | |
$response->setContent($this->flash); | |
return sfView::NONE; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment