New Plugin structure?

Bombi

Verified User
Joined
Jan 6, 2025
Messages
24
I'm having a problem creating a new plugin. When I add a PHP file as an index, the plugin isn't recognized. I wanted to know if this is because it's mandatory to have HTML as the structure, or if I'm doing something wrong. If I change the extension from PHP to HTML, the plugin works without problems.

Thanks.
 
plugins structure will always using ".html" with pre define script execution "#!/" as render webpage.
 
Thank you for the answer i was looking in the docs and find the same info
 
plugins structure will always using ".html" with pre define script execution "#!/" as render webpage.

I just need to figure out how to create CSS and JS to access the plugin's HTML from there. Do you have any idea how I can achieve this? The documentation for plugins is a bit brief.
 
The simplest way to see how the things work is to dissect an existing plugin. So you might do it with "ConfigServer Security & Firewall" the most commonly installed plugin in DirectAdmin.
 
Back
Top