Backend\Modules\Extensions\Actions\DetailModule::execute PHP Method

execute() public method

Execute the action.
public execute ( )
    public function execute()
    {
        // get parameters
        $this->currentModule = $this->getParameter('module', 'string');
        // does the item exist
        if ($this->currentModule !== null && BackendExtensionsModel::existsModule($this->currentModule)) {
            // call parent, this will probably add some general CSS/JS or other required files
            parent::execute();
            // load data
            $this->loadData();
            // load datagrids
            $this->loadDataGridCronjobs();
            $this->loadDataGridEvents();
            // parse
            $this->parse();
            // display the page
            $this->display();
        } else {
            // no item found, redirect to index, because somebody is fucking with our url
            $this->redirect(BackendModel::createURLForAction('Modules') . '&error=non-existing');
        }
    }