New Own Made Module

Begonnen von le Chaland, 24 März 2025, 23:05:08

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 2 Gäste betrachten dieses Thema.

le Chaland

Hello

I am trying to make a new module.

So i created a new folder where i placed an index.php file in which i integrated these lines before the module core :

defined('mxMainFileLoaded') or die('access denied');
pmxBase::set("plugins",0);
$module_name = basename(__DIR__);
$pagetitle = "Test";

But when i upload the new module folder in the modules folder, even if i refresh the module inactives admin page, the module don't appear.

What i missed ?

Thank you in advance.

Olaf / TerraProject

There MUST also be a file in the module folder with the name: setup.pmx.php
The content for this can be found as an example in the file: modules\Documents\setup.pmx.php

When creating a module, please adhere to the pmx API and the rules in the documentation:
https://www.pragmamx.org/Documents-Programmers-Guide-Page-PragmaMx-Coding-Standards-Id-9.html

sorry, only in German Language aviable.
g

Olaf

Kein Support über PN, Mail etc.!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!