mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
renderWith Namespace for Template Loading
Just calling MyCustomTemplate does not work in SS 4.2.X. Adding the full Namespace as a path is now required.
This commit is contained in:
parent
cc712892a9
commit
ff1a0dd6fc
@ -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