this should be be
```
$templateFilepath = $template . "." . $this->config['tpl_ext'];