public function setTemplatePath($templatePath) { $this->templatePath = rtrim($templatePath, '/\\') . '/'; }