<?php is_file(string $filename): bool
<?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); }