Created
December 8, 2011 22:27
-
-
Save rickharris/1448962 to your computer and use it in GitHub Desktop.
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
<?php | |
class Helper_View { | |
public static function render($template_suggestions, $data) | |
{ | |
$last_exception = null; | |
foreach ($template_suggestions as $template) | |
{ | |
try | |
{ | |
return View::factory($template, $data); | |
} | |
catch(\Fuel_Exception $e) { | |
$last_exception = $e; | |
} | |
} | |
throw $e; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment