if ($saveData === null
) { $saveData =
$this->config->saveData;
} $fileExt =
pathinfo($view, PATHINFO_EXTENSION
);
$view =
empty($fileExt) ?
$view . '.php' :
$view; // allow Views as .html, .tpl, etc (from CI3)
$cacheName =
$options['cache_name'
] ??
str_replace('.php', '',
$view);
// Was it cached?
if (isset($options['cache'
]) && ($output =
cache($cacheName))) { $this->
logPerformance($start,
microtime(true
),
$view);
return $output;
} $file =
$this->viewPath .
$view;
if (!
is_file($file)) { $fileOrig =
$file;
$file =
$this->loader->
locateFile($view, 'Views'
);
// locateFile will return an empty string if the file cannot be found.