Pawtucket 2 plugin development
Hello! I am working on a plugin for pawtucket but we have some uncertainties regarding the routing and plugin loading.
Is it correct that when having a plugin located at /app/plugins/StoryMode
and a controller at /app/plugins/StoryMode/controllers/StoryModeController.php
we should be able to call the Index()
method at path index.php/StoryMode/StoryMode/index?
And in order to get started we copied the code from the FindingAid (https://github.com/collectiveaccess/pawtucket2/tree/master/app/plugins/FindingAid) plugin, I read that the plugin is not needed anymore but is it still functional?
FYI, the complete plugin code can be found at https://gitlab.com/aaaamu/StoryMode
Thanks in advance for any help!
Comments
Yes,
/index.php/StoryMode/StoryMode/index
would be the path. You can use FindingAid as a sample. If you want something simpler to use we can post other ones for you.