How to create a simple 'Module/Plugin'
davestar057 - 11 months ago
Hope somebody can help me figure out how to achieve, what should be a really easy task.
I have a module from the old Pyro CMS - has a simple Conrtoller & Model file - then a 'Plugin' file which contains the function I can call on the front end to display a module/widget code.
There is little/zero documentation on creating Modules or Plugins on the site as far as I can see and I am just struggling to understand how I can have some basic logic in a controller and/or model - then once Its done what it needs to do (doesnt even need to interact with any admin or settings at moment) - then just display, or provide an array for the Twig parser to use on the frontend, in ALL footer views.
I am experienced in the previous version of Pyro - but I am stuggling with so little help on the docs for stuff like this.
Really hope somebody can help me figure out how to do something so basic - but which is seemingly proving to be v.hard/confusing using Pyro.