<?php file_get_contents( string $filename, bool $use_include_path = false, ?resource $context = null, int $offset = 0, ?int $length = null): string|false
<?php $is_tpl_file = substr($data, -strlen($ext)) === $ext && str_contains($data, $ext); $location = $this->getRoot() . $data; if ($is_tpl_file) { $file_data = is_file($location) ? file_get_contents($location) : ''; return $this->cache($data, $file_data); }
<?php } $location = $location . $this->getExtension(); $file_data = is_file($location) ? file_get_contents($location) : ''; return $this->cache($data, $file_data); }