Correcting 'Invalid template exception' in Frontend.php