Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
JsonRequest example
protected
$aclPermissions
=
[
]
;
/** * Enable script renderer and json request plugin * Do acl checks * * @return void */
public
function
init
(
)
{
$this
->
Front
(
)
->
Plugins
(
)
->
ScriptRenderer
(
)
->
setRender
(
)
;
$this
->
Front
(
)
->
Plugins
(
)
->
JsonRequest
(
)
->
setParseInput
(
)
->
setParseParams
(
[
'group', 'sort', 'filter'
]
)
->
setPadding
(
$this
->
Request
(
)
->
get
(
'targetField'
)
)
;
// Call controller acl rules (user - defined)
$this
->
initAcl
(
)
;
}
/** * Enable json renderer for index / load action * Checks acl rules */