Post by CartIdeas » Fri May 15, 2020 4:57 pm

Opencart 3.x insists placing the controller file of my extension under extension/module folder if I want to allow it to be installed using built-in extension installer. This is ok if my extension has only one controller file. The extension I am developing has one module settings screen and several other screens and hence has several controller files. I can place the controller for module settings under extension/module folder. The question is where will I place other controller files so that the extension can be still installed using extension installer.

1. If I l keep others also under extension/module folder, each screen will appear as an entry in module list which will be confusing to the user. These screen should appear as menu options only. ( I have OCMOD to add menu items to column_left.php)
2. I can't create one folder under controller and place them in this because extension installer would fail with error - 'directory is not allowed to be written'

How do you developers manage this? What does opencart recommend?

User avatar
New member

Posts

Joined
Sun Dec 04, 2016 1:32 pm

Post by straightlight » Fri May 15, 2020 7:08 pm

This topic has now been moved to the OpenCart 3.0 Support > General Support section of the forum.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Fri May 15, 2020 8:00 pm

Why do you need multiple installations? Keep the module with settings and do everything in its install() function. No need to complicate things.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: No registered users and 42 guests