Created
February 19, 2015 20:12
-
-
Save danimbrogno/4ebf4f5c22eef8a935a3 to your computer and use it in GitHub Desktop.
Output Buffering Example
This file contains 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
public static function displaySvg($handle){ | |
$svg_path = sprintf('images/svg/%s.svg',$handle); | |
ob_start(); | |
include(Theme::getResourcePath($svg_path)); | |
$svg = ob_get_contents(); | |
ob_end_clean(); | |
return $svg; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment