Merge pull request #8629 from aledbrown/patch-1

renderWith() - Namespace added for Template Loading
This commit is contained in:
Robbie Averill 2018-11-21 17:37:27 +01:00 committed by GitHub
commit 3b24323263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ use SilverStripe\View\SSViewer;
public function RenderCustomTemplate()
{
SSViewer::setRewriteHashLinks(false);
$html = $this->renderWith('MyCustomTemplate');
$html = $this->renderWith('My/Namespace/MyCustomTemplate');
SSViewer::setRewriteHashLinks(true);
return $html;