private function cacheFile($tpl) { $file = $this->_cacheDir . '/' . Route::getModule() . '/' . $this->_skin . '/' . $tpl; $withSuffix = $file . '.' . $this->_suffix; if (file_exists($withSuffix)) { return $withSuffix; } if (file_exists($file)) { return $file; } return null; }