How does the readTemplate function in the Template Class handle opening and reading template files?
The readTemplate function in the Template Class can handle opening and reading template files by using the file_get_contents function in PHP. This function reads the entire contents of a file into a string, which can then be returned or processed further within the function.
public function readTemplate($templateFile) {
$templateContent = file_get_contents($templateFile);
return $templateContent;
}