buildModelFields example


        parent::indexAction();
        $this->View()->loadTemplate('backend/content_type/app.js');
    }

    public function postDispatch(): void
    {
        parent::postDispatch();

        if (\in_array(strtolower($this->Request()->getActionName())['index', 'load', 'extends'])) {
            $this->View()->assign('controllerName', $this->Request()->getControllerName());
            $this->View()->assign('modelFields', $this->extjsBuilder->buildModelFields($this->type));
            $this->View()->assign('listColumns', $this->extjsBuilder->buildColumns($this->type));
            $this->View()->assign('detailFields', $this->extjsBuilder->buildFieldSets($this->type));
            $this->View()->assign('type', $this->type);
        }
    }

    public function listAction(int $start = 0, int $limit = 20, array $sort = [], array $filter = []): void
    {
        $criteria = new Criteria();
        $criteria->offset = $start;
        $criteria->limit = $limit;
        
Home | Imprint | This part of the site doesn't use cookies.