| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | protected static function renderFile($componentData, $filePath) |
||
| 35 | { |
||
| 36 | _deprecated_function(__METHOD__, '1.4.0'); |
||
| 37 | if (!is_file($filePath)) { |
||
| 38 | trigger_error("Template not found: {$filePath}", E_USER_WARNING); |
||
| 39 | return ''; |
||
| 40 | } |
||
| 41 | |||
| 42 | ob_start(); |
||
| 43 | require $filePath; |
||
| 44 | $output = ob_get_contents(); |
||
| 45 | ob_get_clean(); |
||
| 46 | |||
| 47 | return $output; |
||
| 48 | } |
||
| 50 |