Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
renderArrayEarly example
}
public
function
ajaxResponse
(
)
{
$response
=
new
AjaxResponse
(
)
;
$response
->
addCommand
(
new
InsertCommand
(
NULL,
$this
->
renderArray
(
)
)
)
;
return
$response
;
}
public
function
ajaxResponseEarly
(
)
{
$response
=
new
AjaxResponse
(
)
;
$response
->
addCommand
(
new
InsertCommand
(
NULL,
$this
->
renderArrayEarly
(
)
)
)
;
return
$response
;
}
public
function
response
(
)
{
return
new
Response
(
'Hello world!'
)
;
}
public
function
responseEarly
(
)
{
$render_array
=
$this
->
earlyRenderContent
(
)
;
return
new
Response
(
$this
->renderer->
render
(
$render_array
)
)
;
}