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 */
Home | Imprint | This part of the site doesn't use cookies.