The Little Guy Posted May 28, 2009 Share Posted May 28, 2009 I want to make a way for people to create plugins or addons, anyone have any method/ideas of how one might implement this into a website? So... Say I have a main site, and the site has additional plugins/addons, and someone was to download the addon/plugin then add it to my distributed software (into the plugins folder), what would be the best way to make the plugin work with the software after added to the plugins folder? Quote Link to comment https://forums.phpfreaks.com/topic/159973-website-plugins/ Share on other sites More sharing options...
.josh Posted May 28, 2009 Share Posted May 28, 2009 so yeah, that's pretty much the main argument for going OOP. Quote Link to comment https://forums.phpfreaks.com/topic/159973-website-plugins/#findComment-843813 Share on other sites More sharing options...
The Little Guy Posted May 28, 2009 Author Share Posted May 28, 2009 I was going to do OOP, so any suggestions on this? Quote Link to comment https://forums.phpfreaks.com/topic/159973-website-plugins/#findComment-843830 Share on other sites More sharing options...
.josh Posted May 28, 2009 Share Posted May 28, 2009 uh, well that sort of was the suggestion...to go OOP. Quote Link to comment https://forums.phpfreaks.com/topic/159973-website-plugins/#findComment-843831 Share on other sites More sharing options...
corbin Posted May 28, 2009 Share Posted May 28, 2009 To make a plugin system... Well... That's not exactly as simple as it sounds. There's not just a magical plugin design pattern. Oh, this is random, but by the way, it's usually polite to link to a website if you use their code. (And in some cases, as I believe it may be in this case although I haven't bothered to look into it, it's illegal to copy paste code.) I was looking through your signature, and I noticed something. On your AJAX page, you obviously copy/pasted from http://www.tizag.com/ajaxTutorial/ajax-mysql-database.php. Quote Link to comment https://forums.phpfreaks.com/topic/159973-website-plugins/#findComment-843836 Share on other sites More sharing options...
Daniel0 Posted May 28, 2009 Share Posted May 28, 2009 To make a plugin system... Well... That's not exactly as simple as it sounds. There's not just a magical plugin design pattern. That depends how the plugin is supposed to work. Do you know the observer pattern? Quote Link to comment https://forums.phpfreaks.com/topic/159973-website-plugins/#findComment-843896 Share on other sites More sharing options...
corbin Posted May 28, 2009 Share Posted May 28, 2009 Hrmmm.... Just googled and I have now. So... Apparently there is a magical plugin design pattern. Tonight has been my biggest "foot in mouth" night in a while. I'm scared to even write this post! Quote Link to comment https://forums.phpfreaks.com/topic/159973-website-plugins/#findComment-843905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.