private function writeEachViewFile($templateType, array $fileNames)
{
foreach ($fileNames as $fileName => $filepath) {
if (!is_array($fileName)) {
$txt = $this->getTemplate($fileName, $templateType, $this->tokens);
$handle = fopen($filepath, "w");
fwrite($handle, $txt);
fclose($handle);
}
}
}