mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 09:05:46 +00:00
IMPR: AJAX processing
This commit is contained in:
parent
53a1b8ff35
commit
67b681e468
@ -7,6 +7,7 @@ use SilverStripe\Control\Director;
|
||||
use SilverStripe\Core\Extension;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
use SilverStripe\Forms\Form;
|
||||
use SilverStripe\ORM\FieldType\DBHTMLText;
|
||||
use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator;
|
||||
use SilverStripe\Security\Security;
|
||||
use SilverStripe\View\SSViewer;
|
||||
@ -155,7 +156,9 @@ class AjaxControllerEx extends Extension
|
||||
'CSSClass' => $ctrl->CSSClass(),
|
||||
'Resources' => $resources,
|
||||
'RequestLink' => $url,
|
||||
'MainContent' => $response->getBody(),
|
||||
'MainContent' => $ctrl->customise([
|
||||
'Layout' => DBHTMLText::create()->setValue($response->getBody()),
|
||||
])->renderWith('Includes/MainContent')->RAW(),
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user