Skip to content

Adding new Module Page

PrimusLV edited this page Oct 24, 2016 · 3 revisions

Answer: easy

Create a new class extending \plugon\module\Module (reference: ExampleModule) The name of the Module is important because it will define the path how it's accessed. If code below produces true then link to access this page will be www.example.com/example

ExampleModule::getName() === 'example'

Register this module.

\plugon\registerModule(new ExampleModule(""));
Clone this wiki locally