XF 2.0 Few questions when developing addons

ludak

Active member
When developing add-on for version 2 is it good practice to keep the addons in different instances of the forum?

Meaning, if I am working on 1 addon (and i set the config value defaultAddOn to addon1), then without changing this every time I need to make the change to another addon (should I just createa another local instance of the xenforo, to change the addon2 there...

Just trying to make the separation so that I dont accidentaly release something from addon1 to addon2?

What is the best practice for this. Any hints, please?
 
AFAIK the "Default Addon" is just the addon that is preselected when you create phrases, templates, template modifications, event listeners, and other things in the AdminCP. More for convenience.

I am not a pro coder, but (personally) I would not use more than one dev instance if I don't have to.
 
The default Add-on setting is just for convenience, so you don't have to select it all the time when adding stuff.

Using a clean environment for every project has pros and cons, personally I do have a few installations - but not one for every tiny Add-on.
 
Thanks,

This is exactly what I was thinking. So its based on the user prefenence pretty much. I dont know I just dont like to mix things together, and get lost somehow into doing things in both addons at the same time, and then get things exported that are not part of the current addon (even though if I select correct addon-modifications in the dropdown, when making them, it would export the right ones...).

Just trying to stay less confused about the process..

Thanks,
 
Thanks,

I am familiar with git and using it on daily basis (for my .NET projects), I never tought I could set up something like this for php (again, I am fairly newbie when it comes to php, have not touched it in like years).

Thanks for the info i will research to set up the local branches of forum to work on.
 
Back
Top Bottom