mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8629 from aledbrown/patch-1
renderWith() - Namespace added for Template Loading
This commit is contained in:
commit
3b24323263
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user