Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By HeshanKaru1994
#826565
Is it a best practice to write all the business logic(javascript and trigger level php) inside a plugin and importing the plugin to the workspace? (So that the pmx file can be relatively small in size)
User avatar
By amosbatto
#826575
It depends on what kind of code you have. If you want to add PHP functions or PHP classes, then you can create a plugin that uses the option PMFunction class.

Then you can write triggers that calls the functions or classes that you added to the plugin. You can also add image files or other types of files to your plugin and access them with the URL:
http://{your-domain}/plugin/{pluginName}/{your directory}/{your-file}

All of this is a lot of work in my opinion. It is a lot easier to just include all your code and files in the process.

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]